diff options
author | Andrew Dolgov <[email protected]> | 2014-05-09 11:33:21 +0000 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-05-09 11:33:21 +0000 |
commit | 1fd733c8ff026f0d5095a2c5a1ebe4d4095da3cd (patch) | |
tree | 615867c163172ed7ea96422dc2b35eec15eaf531 | |
parent | bace5e9e6fbb7b9ec096f5db5e50c26b129c6dd4 (diff) |
fetch_file_contents: do not set referrer when using curl
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 2455bb801..01d8d47f8 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"); |