Reader tweak to allow feeds with doctype like for http://ezrss.it/feed/

This commit is contained in:
Thririot Christophe 2013-05-29 10:17:00 -04:00
parent 4346b27648
commit 5120a0adb4
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class Reader
{
// Strip HTML comments
$data = preg_replace('/<!--(.*)-->/Uis', '', $data);
$data = preg_replace('/<!DOCTYPE(.*)>/Uis', '', $data);
// Find <?xml version....
if (strpos($data, '<?xml') !== false) {