summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelipe Sateler <[email protected]>2013-10-04 17:18:30 -0300
committerFelipe Sateler <[email protected]>2013-10-04 17:56:46 -0300
commitd9eacf54a0e4e1c34c3da643753790fdf6bb44ca (patch)
tree77bc971e8e73ed343de946aa49360f1eab3af129 /include
parent84c53d0e1dba8633fe9fc8ba2d46bb3e3c096173 (diff)
Enable cookies when fetching feeds with curl
If a feed requires cookies, curl needs to have them active in order to access it. This is done by setting the COOKIE_JAR option. Since we do not need the actual cookie jar, send it to /dev/null, curl will still have a valid in-memory cookie jar.
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 e9b1270fb..7c67b6d09 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);