don't use openid CURL wrapper if open_basedir is set (even if safe_mode isn't)
This commit is contained in:
parent
0fb3aa1b57
commit
0a485e6664
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue