From: Andrew Dolgov Date: Fri, 9 May 2014 11:33:21 +0000 (+0000) Subject: fetch_file_contents: do not set referrer when using curl X-Git-Tag: 1.13~34 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1fd733c8ff026f0d5095a2c5a1ebe4d4095da3cd;p=tt-rss.git fetch_file_contents: do not set referrer when using curl --- diff --git a/include/functions.php b/include/functions.php index 2455bb80..01d8d47f 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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");