mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 11:26:31 +03:00
fix: forever loop in golem (#3114)
This commit is contained in:
parent
05f2fb5ec7
commit
cf7896aeef
1 changed files with 8 additions and 0 deletions
|
@ -69,7 +69,15 @@ class GolemBridge extends FeedExpander
|
|||
$item['content'] ??= '';
|
||||
$uri = $item['uri'];
|
||||
|
||||
$urls = [];
|
||||
|
||||
while ($uri) {
|
||||
if (isset($urls[$uri])) {
|
||||
// Prevent forever a loop
|
||||
break;
|
||||
}
|
||||
$urls[$uri] = true;
|
||||
|
||||
$articlePage = getSimpleHTMLDOMCached($uri, static::CACHE_TIMEOUT, static::HEADERS);
|
||||
|
||||
// URI without RSS feed reference
|
||||
|
|
Loading…
Reference in a new issue