From: Byron Jones Date: Wed, 29 Aug 2012 05:45:37 +0000 (+0800) Subject: Bug 786310: Remove tokens when saving the default query X-Git-Tag: bugzilla-4.2.3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=809817d7d23cbc3fe4f35611d1e9755c750fa4eb;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 c5c06bdc84..c941691e2f 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -465,6 +465,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"; }