From a3b0a94e697ed4478cde8de2fb22e9545dc41c8e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 28 Aug 2012 23:22:11 +0800 Subject: Bug 772953: Remove the token from buglist urls r=dkl, a=LpSolit --- Bugzilla/CGI.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index ed8540b2a..0385af2cb 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -171,6 +171,11 @@ 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->delete("token"); + } + foreach my $num (1,2,3) { # If there's no value in the email field, delete the related fields. if (!$self->param("email$num")) { -- cgit v1.2.3-24-g4f1b