From 0a485e66647fb58e58e1a4bcab350109ff28cb22 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 2 Jan 2011 21:01:07 -0800 Subject: don't use openid CURL wrapper if open_basedir is set (even if safe_mode isn't) --- library/openid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/openid.php') diff --git a/library/openid.php b/library/openid.php index eec652bb1..3c58beb8a 100644 --- a/library/openid.php +++ b/library/openid.php @@ -276,7 +276,7 @@ class LightOpenID protected function request($url, $method='GET', $params=array()) { - if(function_exists('curl_init') && !ini_get('safe_mode')) { + if(function_exists('curl_init') && !ini_get('safe_mode') && (! strlen(ini_get('open_basedir')))) { return $this->request_curl($url, $method, $params); } return $this->request_streams($url, $method, $params); -- cgit v1.2.3