diff options
author | Byron Jones <bjones@mozilla.com> | 2012-08-29 07:45:37 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-08-29 07:45:37 +0200 |
commit | 809817d7d23cbc3fe4f35611d1e9755c750fa4eb (patch) | |
tree | e75592759e1f21e994f148bfef1af1b3b295a5c4 /buglist.cgi | |
parent | 98954571ac9cdc3d25ae626bde4ef8c1a18b9811 (diff) | |
download | bugzilla-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-x | buglist.cgi | 2 |
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"; } |