]> git.wh0rd.org - tt-rss.git/commitdiff
Merge pull request #311 from fsateler/curl-cookie-jar
authorAndrew Dolgov <fox+ttrss@fakecake.org>
Sun, 6 Oct 2013 11:39:54 +0000 (04:39 -0700)
committerAndrew Dolgov <fox+ttrss@fakecake.org>
Sun, 6 Oct 2013 11:39:54 +0000 (04:39 -0700)
Enable cookies when fetching feeds with curl

include/functions.php

index 3ac413667d61a299837a7b8d0cd89715a3dd0739..92c37ae1039f27191cc0e26d7e0f9515f142125b 100644 (file)
                        curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
                        curl_setopt($ch, CURLOPT_ENCODING, "");
                        curl_setopt($ch, CURLOPT_REFERER, $url);
+                       curl_setopt($ch, CURLOPT_COOKIEJAR, "/dev/null");
 
                        if (defined('_CURL_HTTP_PROXY')) {
                                curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);