From 312742db6efc22a844a5f0a9d95f0282722354dc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Jan 2016 18:12:31 +0300 Subject: updates: auto-disable CURL if open_basedir is enabled, notify possible issues w/ plugins --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index b928a030d..b558b0e6c 100755 --- a/include/functions.php +++ b/include/functions.php @@ -347,7 +347,7 @@ if (strpos($url, "//") === 0) $url = 'http:' . $url; - if (!defined('NO_CURL') && function_exists('curl_init')) { + if (!defined('NO_CURL') && function_exists('curl_init') && !ini_get("open_basedir")) { $fetch_curl_used = true; -- cgit v1.2.3