summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-08-29 07:45:06 +0200
committerByron Jones <bjones@mozilla.com>2012-08-29 07:45:06 +0200
commit8bfd3ae4ee74f0d6f08edbbeca808acdd7284daf (patch)
tree40948637b4bf2e23df946603f15c8e7f4b2e0d8d /buglist.cgi
parent8f71bef0e28234b14c3dfd33ec607553f2fcc82f (diff)
downloadbugzilla-8bfd3ae4ee74f0d6f08edbbeca808acdd7284daf.tar.gz
bugzilla-8bfd3ae4ee74f0d6f08edbbeca808acdd7284daf.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 d8da0a6bb..8185491d9 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";
}