]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct self_url without cookie stuff
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 24 Nov 2008 05:22:50 +0000 (00:22 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 24 Nov 2008 05:22:50 +0000 (00:22 -0500)
darcs-hash:20081124052250-5ed1f-158956ba8a735e5bfe4f7199c17596e13357cf5f.gz

lib/action.php

index 8f72b542b05214c2e68429d2326727749c8b185f..c0229cf75ff14bc5c6640b74f8dbf817ca32ec69 100644 (file)
@@ -77,6 +77,9 @@ class Action { // lawsuit
                $action = $this->trimmed('action');
                $args = $this->args;
                unset($args['action']);
+               foreach (array_keys($_COOKIE) as $cookie) {
+                       unset($args[$cookie]);
+               }
                return common_local_url($action, $args);
        }