From: Byron Jones Date: Wed, 29 Aug 2012 05:45:06 +0000 (+0800) Subject: Bug 786310: Remove tokens when saving the default query X-Git-Tag: bugzilla-4.3.3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bfd3ae4ee74f0d6f08edbbeca808acdd7284daf;p=thirdparty%2Fbugzilla.git Bug 786310: Remove tokens when saving the default query r= LpSolit, a=LpSolit --- diff --git a/buglist.cgi b/buglist.cgi index d8da0a6bb2..8185491d92 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -435,6 +435,8 @@ elsif (($cmdtype eq "doit") && defined $cgi->param('remtype')) { $user = Bugzilla->login(LOGIN_REQUIRED); my $token = $cgi->param('token'); check_hash_token($token, ['searchknob']); + $buffer = $params->canonicalise_query('cmdtype', 'remtype', + 'query_based_on', 'token'); InsertNamedQuery(DEFAULT_QUERY_NAME, $buffer); $vars->{'message'} = "buglist_new_default_query"; }