Kaynağa Gözat

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 5 yıl önce
ebeveyn
işleme
f7d69ad1de
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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',