From: Andrew Dolgov Date: Wed, 16 May 2007 06:30:33 +0000 (+0100) Subject: better correction of wrong ampersands in Magpie (2) X-Git-Tag: schema_freeze_for_1.2.11~34 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8fd55df16f27b12186328f9d570c818e0e19946f;p=tt-rss.git better correction of wrong ampersands in Magpie (2) --- diff --git a/magpierss/rss_parse.inc b/magpierss/rss_parse.inc index b9c92c55..b7c0ceb5 100644 --- a/magpierss/rss_parse.inc +++ b/magpierss/rss_parse.inc @@ -122,7 +122,7 @@ class MagpieRSS { xml_set_element_handler($this->parser, 'feed_start_element', 'feed_end_element' ); - $source = preg_replace("/&(?![^ ][^ ]+;)/","&",$source); + $source = preg_replace("/&(?![^ ][^ ]*;)/","&",$source); xml_set_character_data_handler( $this->parser, 'feed_cdata' );