aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-12-28 13:09:14 +0100
committerGravatar GitHub <noreply@github.com> 2020-12-28 13:09:14 +0100
commitf7d69ad1de38d69f959646fa6df68570fe00fa96 (patch)
treeb833502635b7536b36cba20470907731de46f04f /lib/lib_rss.php
parente93675e03639c2c8d4fc7d70cfccaa10f5f1707e (diff)
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.
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php1
1 files changed, 1 insertions, 0 deletions
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',