mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:15:56 +00:00
fetch_file_contents: do not set referrer when using curl
This commit is contained in:
@@ -381,7 +381,7 @@
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $useragent ? $useragent :
|
||||
SELF_USER_AGENT);
|
||||
curl_setopt($ch, CURLOPT_ENCODING, "");
|
||||
curl_setopt($ch, CURLOPT_REFERER, $url);
|
||||
//curl_setopt($ch, CURLOPT_REFERER, $url);
|
||||
|
||||
if (!ini_get("safe_mode") && !ini_get("open_basedir")) {
|
||||
curl_setopt($ch, CURLOPT_COOKIEJAR, "/dev/null");
|
||||
|
||||
Reference in New Issue
Block a user