diff --git a/include/functions.php b/include/functions.php index 7c98055a6..38ccfe8ac 100644 --- a/include/functions.php +++ b/include/functions.php @@ -378,7 +378,10 @@ 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 (!ini_get("safe_mode") && !ini_get("open_basedir")) { + curl_setopt($ch, CURLOPT_COOKIEJAR, "/dev/null"); + } if (defined('_CURL_HTTP_PROXY')) { curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);