mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 12:25:56 +00:00
only try to set fucking cookie jar if open_basedir restriction is not in effect
This commit is contained in:
@@ -378,7 +378,10 @@
|
|||||||
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
|
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
|
||||||
curl_setopt($ch, CURLOPT_ENCODING, "");
|
curl_setopt($ch, CURLOPT_ENCODING, "");
|
||||||
curl_setopt($ch, CURLOPT_REFERER, $url);
|
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')) {
|
if (defined('_CURL_HTTP_PROXY')) {
|
||||||
curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);
|
curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);
|
||||||
|
|||||||
Reference in New Issue
Block a user