diff options
author | Byron Jones <bjones@mozilla.com> | 2012-08-29 13:45:37 +0800 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-08-29 13:45:37 +0800 |
commit | 809817d7d23cbc3fe4f35611d1e9755c750fa4eb (patch) | |
tree | e75592759e1f21e994f148bfef1af1b3b295a5c4 | |
parent | Fix more bustage caused by Bug 772953 (diff) | |
download | bugzilla-809817d7d23cbc3fe4f35611d1e9755c750fa4eb.tar.gz bugzilla-809817d7d23cbc3fe4f35611d1e9755c750fa4eb.tar.bz2 bugzilla-809817d7d23cbc3fe4f35611d1e9755c750fa4eb.zip |
Bug 786310: Remove tokens when saving the default query
r= LpSolit, a=LpSolit
-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"; } |