]> git.wh0rd.org Git - tt-rss.git/commitdiff
better correction of wrong ampersands in Magpie (2)
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 06:30:33 +0000 (07:30 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 06:30:33 +0000 (07:30 +0100)
magpierss/rss_parse.inc

index b9c92c55a3a4145021bff34088f1af42fda1dbf0..b7c0ceb576dd156965569b42eafc7a33e3fea941 100644 (file)
@@ -122,7 +122,7 @@ class MagpieRSS {
         xml_set_element_handler($this->parser, 
                 'feed_start_element', 'feed_end_element' );
 
-        $source = preg_replace("/&(?![^ ][^ ]+;)/","&amp;",$source); 
+        $source = preg_replace("/&(?![^ ][^ ]*;)/","&amp;",$source); 
 
         xml_set_character_data_handler( $this->parser, 'feed_cdata' );