Browse Source

Bug warning in case of invalid CDATA

Alexandre Alapetite 11 years ago
parent
commit
c3fd8877c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/SimplePie/SimplePie/Parser.php

+ 1 - 1
lib/SimplePie/SimplePie/Parser.php

@@ -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'))