rodrigoprimo / social-connect

WordPress plugin for signup/login using social media providers.
http://wordpress.org/extend/plugins/social-connect/
GNU General Public License v3.0
73 stars 40 forks source link

cURL FollowLocation issue with OpenID and open_basedir #15

Closed meloniq closed 10 years ago

meloniq commented 12 years ago

I have on my hosts set open_basedir and getting errors about CURLOPT_FOLLOWLOCATION when trying to use OpenID login options...

CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set...

Code: https://github.com/thenbrent/social-connect/blob/master/openid/openid.php#L138

Tested login with commented this parameter, and looks like everything works good without it, so...

maybe You could add check for safe_mode and open_basedir?!

        if( !ini_get('safe_mode') && !ini_get('open_basedir') )
            curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
rodrigoprimo commented 10 years ago

Thanks for reporting, but this issue is related with LightOpenID, a third-party library social-connect uses handle the OpenID protocol.

https://gitorious.org/lightopenid