Prevent endless loops and long running feed processing

This commit is contained in:
Michael 2020-03-22 13:05:35 +00:00
parent 7bc4427c09
commit bc069c8ebf
4 changed files with 16 additions and 4 deletions

View file

@ -884,11 +884,11 @@ class GContact
$items = $outbox['orderedItems'];
} elseif (!empty($outbox['first']['orderedItems'])) {
$items = $outbox['first']['orderedItems'];
} elseif (!empty($outbox['first']['href'])) {
} elseif (!empty($outbox['first']['href']) && ($outbox['first']['href'] != $feed)) {
self::updateFromOutbox($outbox['first']['href'], $data);
return;
} elseif (!empty($outbox['first'])) {
if (is_string($outbox['first'])) {
if (is_string($outbox['first']) && ($outbox['first'] != $feed)) {
self::updateFromOutbox($outbox['first'], $data);
} else {
Logger::warning('Unexpected data', ['outbox' => $outbox]);