rss-php
rss-php copied to clipboard
adjustNamespaces: Prevent infinite children loop
Hi David, I came across rss (bad.rss.txt) that cause this piece of code to infinitely loop.
I am not rss nor xml expert so I do not know root cause but this patch fix it for me but I do not know if it is good solution?
POC:
<?php
require_once __DIR__ . '/src/Feed.php';
$feed = Feed::loadRss('https://github.com/dg/rss-php/files/9019437/bad.rss.txt');
// infinite loop
var_dump($feed->title);
Friendly monthly ping @dg
Monthly ping @dg
Hourly ping @dg :P
Thanks, fixed