rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 79dcef4bb90961de94cf7c84d5f251caf35c5be8
parent dbc075bc7c960565d42f8daea018ece06073c8e5
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 31 Dec 2014 12:14:51 +0100

try to fix openid libary

Diffstat:
Mcore/libs/OpenID/openid.php | 14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/core/libs/OpenID/openid.php b/core/libs/OpenID/openid.php @@ -354,8 +354,18 @@ class LightOpenID protected function request($url, $method='GET', $params=array(), $update_claimed_id=false) { - if (function_exists('curl_init') - && (!in_array('https', stream_get_wrappers()) || !ini_get('safe_mode') && !ini_get('open_basedir')) + //if (function_exists('curl_init') + // && (!in_array('https', stream_get_wrappers()) || !ini_get('safe_mode') && !ini_get('open_basedir')) + //) { + if ( + function_exists( 'curl_init' ) && + ( + !in_array( 'https', stream_get_wrappers() ) || + ( + !ini_get( 'safe_mode' ) && + !ini_get( 'open_basedir' ) + ) + ) ) { return $this->request_curl($url, $method, $params, $update_claimed_id); }