]> git.wh0rd.org Git - tt-rss.git/commitdiff
fetch_file_contents: do not set referrer when using curl
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 9 May 2014 11:33:21 +0000 (11:33 +0000)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 9 May 2014 11:33:21 +0000 (11:33 +0000)
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");