diff options
author | mkanat%bugzilla.org <> | 2009-07-07 18:16:51 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-07-07 18:16:51 +0000 |
commit | 89b15c8ff86238276de3428c379e46f7c04b6516 (patch) | |
tree | 43783cd8539a794b58ebe5b86dbfa7e43eaf143c /whine.pl | |
parent | Bug 502641: Fix various problems that would occur when you would log in from ... (diff) | |
download | bugzilla-89b15c8ff86238276de3428c379e46f7c04b6516.tar.gz bugzilla-89b15c8ff86238276de3428c379e46f7c04b6516.tar.bz2 bugzilla-89b15c8ff86238276de3428c379e46f7c04b6516.zip |
Bug 491467: Make Search.pm and buglist.cgi consistently take column ids for the "fields" and "order" arguments, to prevent problems with using SQL fragments in the order and columnlist.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=mkanat
Diffstat (limited to 'whine.pl')
-rwxr-xr-x | whine.pl | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -431,16 +431,16 @@ sub run_queries { next unless $savedquery; # silently ignore missing queries # Execute the saved query - my @searchfields = ( - 'bugs.bug_id', - 'bugs.bug_severity', - 'bugs.priority', - 'bugs.rep_platform', - 'bugs.assigned_to', - 'bugs.bug_status', - 'bugs.resolution', - 'bugs.short_desc', - 'map_assigned_to.login_name', + my @searchfields = qw( + bug_id + bug_severity + priority + rep_platform + assigned_to + bug_status + resolution + short_desc + assigned_to ); # A new Bugzilla::CGI object needs to be created to allow # Bugzilla::Search to execute a saved query. It's exceedingly weird, |