]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix args in returnto
authorEvan Prodromou <evan@prodromou.name>
Fri, 6 Jun 2008 05:13:31 +0000 (01:13 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 6 Jun 2008 05:13:31 +0000 (01:13 -0400)
darcs-hash:20080606051331-84dde-1afe6e4a156cbb802b8b4231e065dc99ad07fef4.gz

actions/userauthorization.php

index 87040adad0902b3933827372a57285c642c31d32..0deecd31f1f578e6927d4957e52e13eaa8c241d6 100644 (file)
@@ -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;