From 946ebd31b98a4b3df6be3f27acdcabf455a54749 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 21 Sep 2024 11:58:00 +0200 Subject: [PATCH] Remove HTTP Referer https://github.com/FreshRSS/FreshRSS/pull/6523 https://github.com/FreshRSS/FreshRSS/issues/6811 --- src/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/File.php b/src/File.php index 2a6177f6b..b56fac342 100644 --- a/src/File.php +++ b/src/File.php @@ -124,7 +124,7 @@ public function __construct(string $url, int $timeout = 10, int $redirects = 5, 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) {