build backto a little smarter
darcs-hash:20080619140350-84dde-a9b640051f5b35a5f7907d49ab006e62d480b82a.gz
This commit is contained in:
parent
53706623b2
commit
8e8dcd1eeb
|
@ -94,7 +94,10 @@ function oid_get_user($openid_url) {
|
||||||
|
|
||||||
function oid_check_immediate($openid_url, $backto=NULL) {
|
function oid_check_immediate($openid_url, $backto=NULL) {
|
||||||
if (!$backto) {
|
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__);
|
common_debug('going back to "' . $backto . '"', __FILE__);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user