summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-05-09 11:33:21 +0000
committerAndrew Dolgov <[email protected]>2014-05-09 11:33:21 +0000
commit1fd733c8ff026f0d5095a2c5a1ebe4d4095da3cd (patch)
tree615867c163172ed7ea96422dc2b35eec15eaf531 /include/functions.php
parentbace5e9e6fbb7b9ec096f5db5e50c26b129c6dd4 (diff)
fetch_file_contents: do not set referrer when using curl
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
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");