fetch_file_contents: do not set referrer when using curl

This commit is contained in:
Andrew Dolgov 2014-05-09 11:33:21 +00:00
parent bace5e9e6f
commit 1fd733c8ff

View file

@ -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");