summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-03-08 06:04:35 +0100
committerterry%mozilla.org <>2000-03-08 06:04:35 +0100
commit21a4e6c98f6fee863721f11cc0e6a209a0f3e04a (patch)
tree4fd834006eefc4ec77614faf5915aa80bf5efbb2 /buglist.cgi
parentcb4cf3e2a3138c2248dde3fbbac1d7947a9d812f (diff)
downloadbugzilla-21a4e6c98f6fee863721f11cc0e6a209a0f3e04a.tar.gz
bugzilla-21a4e6c98f6fee863721f11cc0e6a209a0f3e04a.tar.xz
Was choking on order='Importance'.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 75549e730..8cb09d427 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -888,8 +888,6 @@ if (defined $::FORM{'order'} && $::FORM{'order'} ne "") {
$::FORM{'order'} =~ s/assign\.login_name/map_assigned_to.login_name/g;
# Another backwards compatability hack.
- die "Invalid order: $::FORM{'order'}" unless
- $::FORM{'order'} =~ /^([a-zA-Z0-9_., ]+)$/;
ORDER: for ($::FORM{'order'}) {
/\./ && do {
# This (hopefully) already has fieldnames in it, so we're done.
@@ -910,6 +908,8 @@ if (defined $::FORM{'order'} && $::FORM{'order'} ne "") {
# DEFAULT
$::FORM{'order'} = "bugs.bug_status, bugs.priority, map_assigned_to.login_name, bugs.bug_id";
}
+ die "Invalid order: $::FORM{'order'}" unless
+ $::FORM{'order'} =~ /^([a-zA-Z0-9_., ]+)$/;
$query .= $::FORM{'order'};
}