From 1fd733c8ff026f0d5095a2c5a1ebe4d4095da3cd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 9 May 2014 11:33:21 +0000 Subject: [PATCH] fetch_file_contents: do not set referrer when using curl --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.5