diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-20 00:53:55 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-20 00:53:55 +0200 |
commit | 9bc3991c230ca464b8af9b7fb219ee7925edcac9 (patch) | |
tree | 28bae863374353071e6fde6906128f63a0e66c9c /apps/user_openid/phpmyid.php | |
parent | 332cab0c559361e7295d4a993329d610a050bf94 (diff) | |
download | nextcloud-server-9bc3991c230ca464b8af9b7fb219ee7925edcac9.tar.gz nextcloud-server-9bc3991c230ca464b8af9b7fb219ee7925edcac9.zip |
serveral small fixes to the openid server
Diffstat (limited to 'apps/user_openid/phpmyid.php')
-rw-r--r-- | apps/user_openid/phpmyid.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/user_openid/phpmyid.php b/apps/user_openid/phpmyid.php index 7991b87c6d8..146eb380f73 100644 --- a/apps/user_openid/phpmyid.php +++ b/apps/user_openid/phpmyid.php @@ -209,7 +209,6 @@ function authorize_mode () { $profile['idp_url']=$IDENTITY; if (isset($_SERVER['PHP_AUTH_USER']) && $profile['authorized'] === false && $_SERVER['PHP_AUTH_USER']==$USERNAME) { if (OC_USER::checkPassword($USERNAME, $_SERVER['PHP_AUTH_PW'])) {// successful login! - error_log('success'); // return to the refresh url if they get in $_SESSION['openid_auth']=true; $_SESSION['openid_user']=$USERNAME; @@ -339,7 +338,7 @@ function checkid ( $wait ) { : error_get($return_to, 'Missing identity'); $assoc_handle = @strlen($_REQUEST['openid_assoc_handle']) - ? $_REQUEST['openid_assoc.handle'] + ? $_REQUEST['openid_assoc_handle'] : null; $trust_root = @strlen($_REQUEST['openid_trust_root']) @@ -1626,7 +1625,6 @@ $GLOBALS['port'] = ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on' && $_ : ':' . $_SERVER['SERVER_PORT']; -error_log($_SERVER['HTTP_HOST']); /** * Determine the HTTP request protocol * @name $proto @@ -1651,15 +1649,15 @@ $profile['req_url'] = sprintf("%s://%s%s", // $port,//host already includes the path $_SERVER["REQUEST_URI"]); -$fullId=urlencode('.php/'.$USERNAME); -$incompleteId=urlencode('.php/'); +$fullId='user.php/'.$USERNAME.'/'; +$incompleteId='user.php/'; if(!strpos($profile['req_url'],$fullId)){ $profile['req_url']=str_replace($incompleteId,$fullId,$profile['req_url']); } -error_log('inc id: '.$fullId); -error_log('req url: '.$profile['req_url']); +// error_log('inc id: '.$fullId); +// error_log('req url: '.$profile['req_url']); // Set the default allowance for testing if (! array_key_exists('allow_test', $profile)) |