]> git.wh0rd.org Git - tt-rss.git/commitdiff
add magpie ampersand fix as per forum thread #740
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 05:14:20 +0000 (06:14 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 05:14:20 +0000 (06:14 +0100)
magpierss/rss_parse.inc

index 56d420f097566e455083a39418aa6ed2ecddab01..f0558ac80d3748d0cea8ee19f2d015ed2ad8f897 100644 (file)
@@ -121,7 +121,9 @@ class MagpieRSS {
         xml_set_object( $this->parser, $this );
         xml_set_element_handler($this->parser, 
                 'feed_start_element', 'feed_end_element' );
-                        
+
+        $source = preg_replace("/&(?!amp;)/","&amp;",$source); 
+
         xml_set_character_data_handler( $this->parser, 'feed_cdata' ); 
     
         $status = xml_parse( $this->parser, $source );