summaryrefslogtreecommitdiff
path: root/lib/openid.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-19 10:03:50 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-19 10:03:50 -0400
commit8e8dcd1eeb47a67d184dee364865d7cb0395549d (patch)
tree45c7edc552174762cb73b4be8f2ed488598ea1e6 /lib/openid.php
parent53706623b22dba49c9140e62dc4f15ad3e2553a7 (diff)
build backto a little smarter
darcs-hash:20080619140350-84dde-a9b640051f5b35a5f7907d49ab006e62d480b82a.gz
Diffstat (limited to 'lib/openid.php')
-rw-r--r--lib/openid.php5
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__);