]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
build backto a little smarter
authorEvan Prodromou <evan@prodromou.name>
Thu, 19 Jun 2008 14:03:50 +0000 (10:03 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 19 Jun 2008 14:03:50 +0000 (10:03 -0400)
darcs-hash:20080619140350-84dde-a9b640051f5b35a5f7907d49ab006e62d480b82a.gz

lib/openid.php

index a19bfc57f3b2a330aba2a7419a023b1fa4f70864..d044aa762484586ba3258f91aa9407c8d4d085bf 100644 (file)
@@ -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__);