Explorar el Código

SimplePie Strip comments (#3288)

#fix https://github.com/FreshRSS/FreshRSS/issues/3282 (workaround an nginx configuration bug)

We do not need to keep HTML comments in RSS content.
Alexandre Alapetite hace 5 años
padre
commit
f7d69ad1de
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      lib/lib_rss.php

+ 1 - 0
lib/lib_rss.php

@@ -165,6 +165,7 @@ function customSimplePie($attributes = array()) {
 	}
 	$simplePie->set_curl_options($curl_options);
 
+	$simplePie->strip_comments(true);
 	$simplePie->strip_htmltags(array(
 		'base', 'blink', 'body', 'doctype', 'embed',
 		'font', 'form', 'frame', 'frameset', 'html',