diff options
author | Alexandre Alapetite <alexandre@alapetite.fr> | 2024-09-21 15:41:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-21 15:41:14 +0200 |
commit | 7b2e87fd33e6c1ddc052c88c5f95ba9672e5e74b (patch) | |
tree | 3306273c2edb47617ed57cb8792d0a57ea354f10 | |
parent | e9398f3f8cb703ec68422509ff50c97beae83c4d (diff) | |
download | freshrss-7b2e87fd33e6c1ddc052c88c5f95ba9672e5e74b.tar.gz freshrss-7b2e87fd33e6c1ddc052c88c5f95ba9672e5e74b.zip |
Remove HTTP Referer (#6822)
* Remove HTTP Referer
https://github.com/FreshRSS/simplepie/pull/27
https://github.com/FreshRSS/FreshRSS/pull/6523
fix https://github.com/FreshRSS/FreshRSS/issues/6811
https://github.com/simplepie/simplepie/issues/224
* Bump SimplePie commit
-rw-r--r-- | lib/composer.json | 2 | ||||
-rw-r--r-- | lib/simplepie/simplepie/src/File.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/composer.json b/lib/composer.json index 67eb3518a..e2d77fa06 100644 --- a/lib/composer.json +++ b/lib/composer.json @@ -18,7 +18,7 @@ "marienfressinaud/lib_opml": "0.5.1", "phpgt/cssxpath": "dev-master#45f3ac151fc21d459e2515c3aff97cd4bf877bf8", "phpmailer/phpmailer": "6.9.1", - "simplepie/simplepie": "dev-freshrss#7090eedb1358d95c002282a645ef915d5ce55c56" + "simplepie/simplepie": "dev-freshrss#e041dacffc6e29979437d1545773a3e0f716c486" }, "config": { "sort-packages": true, diff --git a/lib/simplepie/simplepie/src/File.php b/lib/simplepie/simplepie/src/File.php index 2a6177f6b..b56fac342 100644 --- a/lib/simplepie/simplepie/src/File.php +++ b/lib/simplepie/simplepie/src/File.php @@ -124,7 +124,7 @@ class File implements Response curl_setopt($fp, CURLOPT_FAILONERROR, 1); curl_setopt($fp, CURLOPT_TIMEOUT, $timeout); curl_setopt($fp, CURLOPT_CONNECTTIMEOUT, $timeout); - curl_setopt($fp, CURLOPT_REFERER, \SimplePie\Misc::url_remove_credentials($url)); + // curl_setopt($fp, CURLOPT_REFERER, \SimplePie\Misc::url_remove_credentials($url)); // FreshRSS removed curl_setopt($fp, CURLOPT_USERAGENT, $useragent); curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2); foreach ($curl_options as $curl_param => $curl_value) { |