From e322732bd31f42c8d863492c256222ded4a309de Mon Sep 17 00:00:00 2001 From: CiaranG Date: Tue, 9 Sep 2008 16:22:59 -0400 Subject: [PATCH] Fix remote sub when redirected via login (Ticket #618) darcs-hash:20080909202259-f6e2c-8c7e836fd1f0ce9de3ea3802161e1068e346e5dd.gz --- actions/userauthorization.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/actions/userauthorization.php b/actions/userauthorization.php index 111b54085c..735bcb6b5a 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;