Bug warning in case of invalid CDATA

This commit is contained in:
Alexandre Alapetite
2014-09-06 16:04:49 +02:00
parent ea79967ff9
commit c3fd8877c0

View File

@@ -142,7 +142,7 @@ class SimplePie_Parser
$dom = new DOMDocument();
$dom->recover = true;
$dom->strictErrorChecking = false;
$dom->loadXML($data);
@$dom->loadXML($data);
$this->encoding = $encoding = $dom->encoding = 'UTF-8';
$data2 = $dom->saveXML();
if (function_exists('mb_convert_encoding'))