summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-10-06 04:39:54 -0700
committerAndrew Dolgov <[email protected]>2013-10-06 04:39:54 -0700
commit29a57cdc4d81374b212c346099f9f2272037d815 (patch)
treea43975dfec1c83283ebf42c1a107857add1911c1 /include
parent924a89ebf33b5ce82a76aa4f9b4726cb60282528 (diff)
parentd9eacf54a0e4e1c34c3da643753790fdf6bb44ca (diff)
Merge pull request #311 from fsateler/curl-cookie-jar
Enable cookies when fetching feeds with curl
Diffstat (limited to 'include')
-rw-r--r--include/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 3ac413667..92c37ae10 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -378,6 +378,7 @@
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);