Explorar o código

Merge branch 'dev' of github.com:marienfressinaud/FreshRSS into dev

Marien Fressinaud %!s(int64=12) %!d(string=hai) anos
pai
achega
06236ba446
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/SimplePie/SimplePie/Sanitize.php

+ 1 - 0
lib/SimplePie/SimplePie/Sanitize.php

@@ -379,6 +379,7 @@ class SimplePie_Sanitize
 	protected function preprocess($html, $type)
 	{
 		$ret = '';
+		$html = preg_replace('%</?(?:html|body)[^>]*?'.'>%is', '', $html);
 		if ($type & ~SIMPLEPIE_CONSTRUCT_XHTML)
 		{
 			// Atom XHTML constructs are wrapped with a div by default