]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix remote sub when redirected via login (Ticket #618)
authorCiaranG <ciaran@ciarang.com>
Tue, 9 Sep 2008 20:22:59 +0000 (16:22 -0400)
committerCiaranG <ciaran@ciarang.com>
Tue, 9 Sep 2008 20:22:59 +0000 (16:22 -0400)
darcs-hash:20080909202259-f6e2c-8c7e836fd1f0ce9de3ea3802161e1068e346e5dd.gz

actions/userauthorization.php

index 111b54085c6009820ce88d6f2a061ff0073cb7ab..735bcb6b5ab3c05ca5100a18e9f9e057f74183e9 100644 (file)
@@ -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;