diff options
author | CiaranG <ciaran@ciarang.com> | 2008-09-09 16:22:59 -0400 |
---|---|---|
committer | CiaranG <ciaran@ciarang.com> | 2008-09-09 16:22:59 -0400 |
commit | e322732bd31f42c8d863492c256222ded4a309de (patch) | |
tree | 387843b2d0afd3a2b8c8cddda9ea96987c15c296 | |
parent | 26634ef0a08234980835698e40b23a291305d1f8 (diff) |
Fix remote sub when redirected via login (Ticket #618)
darcs-hash:20080909202259-f6e2c-8c7e836fd1f0ce9de3ea3802161e1068e346e5dd.gz
-rw-r--r-- | actions/userauthorization.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php index 111b54085..735bcb6b5 100644 --- a/actions/userauthorization.php +++ b/actions/userauthorization.php @@ -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; |