aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-02 21:01:07 -0800
committerFriendika <info@friendika.com>2011-01-02 21:01:07 -0800
commit0a485e66647fb58e58e1a4bcab350109ff28cb22 (patch)
treea1f539c76910e5c224ddae3ec610a8dc6e2ab34a /library
parent0fb3aa1b57dc2a1d58a839bc99d2098003778d33 (diff)
downloadvolse-hubzilla-0a485e66647fb58e58e1a4bcab350109ff28cb22.tar.gz
volse-hubzilla-0a485e66647fb58e58e1a4bcab350109ff28cb22.tar.bz2
volse-hubzilla-0a485e66647fb58e58e1a4bcab350109ff28cb22.zip
don't use openid CURL wrapper if open_basedir is set (even if safe_mode isn't)
Diffstat (limited to 'library')
-rw-r--r--library/openid.php2
1 files changed, 1 insertions, 1 deletions
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);