summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-08-28 18:35:50 +0200
committerByron Jones <bjones@mozilla.com>2012-08-28 18:35:50 +0200
commitbeae46063bcb62deddd6e72c2e34388b3c265da0 (patch)
tree561e5c554235ac21c0e192d81a0bf7ede780af68 /Bugzilla
parentb412d2636fd4997389a5ecad459c2e31adf670fc (diff)
downloadbugzilla-beae46063bcb62deddd6e72c2e34388b3c265da0.tar.gz
bugzilla-beae46063bcb62deddd6e72c2e34388b3c265da0.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 21d4303a8..d0b3f3711 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -169,6 +169,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")) {