Commit 8bfd3ae4 authored by Byron Jones's avatar Byron Jones

Bug 786310: Remove tokens when saving the default query

r= LpSolit, a=LpSolit
parent 8f71bef0
......@@ -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";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment