magpie, simplepie: add (experimental) patches for broken libxml

This commit is contained in:
Andrew Dolgov 2008-12-01 06:23:01 +01:00
parent c9d16c3ad2
commit 7cc1e4aed8
2 changed files with 8 additions and 0 deletions

View file

@ -159,6 +159,10 @@ class MagpieRSS {
'feed_start_element', 'feed_end_element' );
xml_set_character_data_handler( $this->parser, 'feed_cdata' );
$source=str_replace("<","<",$source);
$source=str_replace(">",">",$source);
$source=str_replace("&","&",$source);
$status = xml_parse( $this->parser, $source );

View file

@ -12761,6 +12761,10 @@ class SimplePie_Parser
xml_set_character_data_handler($xml, 'cdata');
xml_set_element_handler($xml, 'tag_open', 'tag_close');
$data=str_replace("<","<",$data);
$data=str_replace(">",">",$data);
$data=str_replace("&","&",$data);
// Parse!
if (!xml_parse($xml, $data, true))
{