summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-08-28 17:22:11 +0200
committerByron Jones <bjones@mozilla.com>2012-08-28 17:22:11 +0200
commita3b0a94e697ed4478cde8de2fb22e9545dc41c8e (patch)
treeeaf3cf782d67848d88b9f22d02f1c0cbc1bc35d0 /Bugzilla
parentee28112b01e1ea22ee0cccca898f38d14ed54f29 (diff)
downloadbugzilla-a3b0a94e697ed4478cde8de2fb22e9545dc41c8e.tar.gz
bugzilla-a3b0a94e697ed4478cde8de2fb22e9545dc41c8e.tar.xz
Bug 772953: Remove the token from buglist urls
r=dkl, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/CGI.pm5
1 files changed, 5 insertions, 0 deletions
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")) {