diff options
| author | 2021-03-09 08:41:47 +0100 | |
|---|---|---|
| committer | 2021-03-09 08:41:47 +0100 | |
| commit | b7fdfbb89421322e0ec15beb10f4260f33afd31e (patch) | |
| tree | 4dbf3e25a9940c50cac66194343525674f8c04c5 /lib/lib_rss.php | |
| parent | ef4a826e345e2eb7c0013617b3f07cc53ef22ed8 (diff) | |
SimplePie prevent cache pollution (#3502)
* SimplePie prevent cache polution
#fix https://github.com/FreshRSS/FreshRSS/pull/3367#issuecomment-766250249
#fix https://github.com/FreshRSS/FreshRSS/pull/3494#issuecomment-790113663
* Fix bug
* Minor improvement
* Update cache filename in FreshRSS (1/2)
* cacheFilename temp
* New SimplePie get_cache_filename()
* Fix typos
* Update lib/SimplePie/SimplePie.php
Typo
* Include user-agent and timeout
* fix array_merge
* Declaration
* force_feed was lost in a commit
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 13fce3d8c..0181d30de 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -173,6 +173,7 @@ function customSimplePie($attributes = array()) { $simplePie = new SimplePie(); $simplePie->set_useragent(FRESHRSS_USERAGENT); $simplePie->set_syslog(FreshRSS_Context::$system_conf->simplepie_syslog_enabled); + $simplePie->set_cache_name_function('sha1'); $simplePie->set_cache_location(CACHE_PATH); $simplePie->set_cache_duration($limits['cache_duration']); |
