Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjustNamespaces: Prevent infinite children loop #24

Closed
wants to merge 1 commit into from
Closed

adjustNamespaces: Prevent infinite children loop #24

wants to merge 1 commit into from

Conversation

solcloud
Copy link

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?

@solcloud solcloud closed this Jun 30, 2022
@solcloud solcloud reopened this Jun 30, 2022
@solcloud
Copy link
Author

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);

@solcloud
Copy link
Author

Friendly monthly ping @dg

@solcloud
Copy link
Author

Monthly ping @dg

@Josepzin
Copy link

Hourly ping @dg :P

@dg
Copy link
Owner

dg commented Sep 6, 2022

Thanks, fixed

@dg dg closed this in abcaa62 Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants