]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix more bustage caused by Bug 772953
authorByron Jones <bjones@mozilla.com>
Wed, 29 Aug 2012 04:56:17 +0000 (12:56 +0800)
committerByron Jones <bjones@mozilla.com>
Wed, 29 Aug 2012 04:56:17 +0000 (12:56 +0800)
Bugzilla/CGI.pm

index 0b75eeb0a4f6e480e54c26c15b693525af38dd9f..2bc7cc592cab69ccf212802ddb6f96ceffb4b4da 100644 (file)
@@ -171,10 +171,12 @@ sub clean_search_url {
     # Delete leftovers from the login form
     $self->delete('Bugzilla_remember', 'GoAheadAndLogIn');
 
-    # Delete the token if we're not updating the defaults
-    unless (defined $self->param('remtype')
-            && ($self->param('remtype') eq 'asdefault'
-                || $self->param('remtype') eq 'asnamed'))
+    # Delete the token if we're not performing an action which needs it
+    unless ((defined $self->param('remtype')
+             && ($self->param('remtype') eq 'asdefault'
+                 || $self->param('remtype') eq 'asnamed'))
+            || (defined $self->param('remaction')
+                && $self->param('remaction') eq 'forget'))
     {
         $self->delete("token");
     }