]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 786310: Remove tokens when saving the default query
authorByron Jones <bjones@mozilla.com>
Wed, 29 Aug 2012 05:45:06 +0000 (13:45 +0800)
committerByron Jones <bjones@mozilla.com>
Wed, 29 Aug 2012 05:45:06 +0000 (13:45 +0800)
r= LpSolit, a=LpSolit

buglist.cgi

index d8da0a6bb2d872e3325d6fd1b0678df63dc79819..8185491d9214184cca318482dd07cf1e66b6fc7e 100755 (executable)
@@ -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";
     }