]> git.wh0rd.org Git - tt-rss.git/commitdiff
sanitize_rss: fix wrong element being returned after DOMDocument parsing
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Nov 2010 06:39:05 +0000 (09:39 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Nov 2010 06:39:05 +0000 (09:39 +0300)
functions.php

index ee737c21f9ea2235efa3d2f30c80320ca52e56a4..3b9346c5f7cc7df06d79ef5d492d23a26e04cb72 100644 (file)
                        }
                }
        
-               $node = $doc->getElementsByTagName('body')->item(0)->firstChild;
+               $node = $doc->getElementsByTagName('body')->item(0);
 
                return $doc->saveXML($node); 
        }