Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

cURL follow on location functionality and open_basedir or safe mode error #3

Closed
ghost opened this issue Dec 7, 2011 · 0 comments
Closed

Comments

@ghost
Copy link

ghost commented Dec 7, 2011

cURLfollow on location functionality needs cannot be activated when safe_mode is enabled or an open_basedir is set, else the Kohana framework throws this error:

ErrorException [ Warning ]: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set

There is a workaround in XmppPrebind.php:

// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
}

mweibel pushed a commit that referenced this issue Feb 19, 2015
Fix detection of Auth mechanisms.
@mweibel mweibel closed this as completed Feb 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant