diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openid.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/openid.php b/lib/openid.php index a19bfc57f..d044aa762 100644 --- a/lib/openid.php +++ b/lib/openid.php @@ -94,7 +94,10 @@ function oid_get_user($openid_url) { function oid_check_immediate($openid_url, $backto=NULL) { if (!$backto) { - $backto = $_SERVER['PHP_SELF']; + $action = $_REQUEST['action']; + $args = clone($_GET); + unset($args['action']); + $backto = common_local_url($action, $args); } common_debug('going back to "' . $backto . '"', __FILE__); |