summaryrefslogtreecommitdiff
path: root/actions/userauthorization.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/userauthorization.php')
-rw-r--r--actions/userauthorization.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index 87040adad..0deecd31f 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -33,8 +33,9 @@ class UserauthorizationAction extends Action {
if (!common_logged_in()) {
# Go log in, and then come back
common_debug('userauthorization.php - saving URL for returnto');
- common_set_returnto(common_local_url('userauthorization'),
- $this->args);
+ $argsclone = clone($args);
+ unset($argsclone['action']);
+ common_set_returnto(common_local_url('userauthorization', $argsclone));
common_debug('userauthorization.php - redirecting to login');
common_redirect(common_local_url('login'));
return;