diff options
author | Andrew Dolgov <[email protected]> | 2013-10-06 04:39:54 -0700 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-10-06 04:39:54 -0700 |
commit | 29a57cdc4d81374b212c346099f9f2272037d815 (patch) | |
tree | a43975dfec1c83283ebf42c1a107857add1911c1 /include/functions.php | |
parent | 924a89ebf33b5ce82a76aa4f9b4726cb60282528 (diff) | |
parent | d9eacf54a0e4e1c34c3da643753790fdf6bb44ca (diff) |
Merge pull request #311 from fsateler/curl-cookie-jar
Enable cookies when fetching feeds with curl
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 1 |
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); |