summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-08-29 07:45:37 +0200
committerByron Jones <bjones@mozilla.com>2012-08-29 07:45:37 +0200
commit809817d7d23cbc3fe4f35611d1e9755c750fa4eb (patch)
treee75592759e1f21e994f148bfef1af1b3b295a5c4 /buglist.cgi
parent98954571ac9cdc3d25ae626bde4ef8c1a18b9811 (diff)
downloadbugzilla-809817d7d23cbc3fe4f35611d1e9755c750fa4eb.tar.gz
bugzilla-809817d7d23cbc3fe4f35611d1e9755c750fa4eb.tar.xz
Bug 786310: Remove tokens when saving the default query
r= LpSolit, a=LpSolit
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index c5c06bdc8..c941691e2 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";
}