]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
fetch_file_contents: do not set referrer when using curl
[tt-rss.git] / include / functions.php
index 2455bb801432b2c2edcbe7966362a4e77409b1f2..01d8d47f885d821fdce938e07ad03b2ca7a701dc 100644 (file)
                        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");