From f7d69ad1de38d69f959646fa6df68570fe00fa96 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 28 Dec 2020 13:09:14 +0100 Subject: 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. --- lib/lib_rss.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 1ee054c14..955f0b71e 100644 --- a/lib/lib_rss.php +++ b/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', -- cgit v1.2.3