Fix remote sub when redirected via login (Ticket #618)
darcs-hash:20080909202259-f6e2c-8c7e836fd1f0ce9de3ea3802161e1068e346e5dd.gz
This commit is contained in:
parent
26634ef0a0
commit
e322732bd3
@ -41,9 +41,8 @@ class UserauthorizationAction extends Action {
|
||||
if (!common_logged_in()) {
|
||||
# Go log in, and then come back
|
||||
common_debug('saving URL for returnto', __FILE__);
|
||||
$argsclone = $_GET;
|
||||
unset($argsclone['action']);
|
||||
common_set_returnto(common_local_url('userauthorization', $argsclone));
|
||||
common_set_returnto($_SERVER['REQUEST_URI']);
|
||||
|
||||
common_debug('redirecting to login', __FILE__);
|
||||
common_redirect(common_local_url('login'));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user