From 7b2e87fd33e6c1ddc052c88c5f95ba9672e5e74b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 21 Sep 2024 15:41:14 +0200 Subject: 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 --- lib/simplepie/simplepie/src/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/simplepie') 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) { -- cgit v1.2.3