aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-12-07 01:09:53 +0000
committerterry%mozilla.org <>1999-12-07 01:09:53 +0000
commit0e1b77bfa5defc91dd29fb86ec5f53646f4abe93 (patch)
treeb713e747364fee5cc816f5bcdf5727d28b564294
parent0a8567206978a9d79d356f425d3464cec0cc44a0 (diff)
downloadbugs-0e1b77bfa5defc91dd29fb86ec5f53646f4abe93.tar
bugs-0e1b77bfa5defc91dd29fb86ec5f53646f4abe93.tar.gz
bugs-0e1b77bfa5defc91dd29fb86ec5f53646f4abe93.tar.bz2
bugs-0e1b77bfa5defc91dd29fb86ec5f53646f4abe93.tar.xz
bugs-0e1b77bfa5defc91dd29fb86ec5f53646f4abe93.zip
Don't do dmose's paranoid checking of option values in the query page.
-rw-r--r--CGI.pl4
-rwxr-xr-xquery.cgi5
2 files changed, 8 insertions, 1 deletions
diff --git a/CGI.pl b/CGI.pl
index 69a67b36b..a5a4b3b1e 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -270,6 +270,8 @@ sub navigation_header {
}
+$::CheckOptionValues = 1;
+
sub make_options {
my ($src,$default,$isregexp) = (@_);
my $last = "";
@@ -294,7 +296,7 @@ sub make_options {
}
}
if (!$found && $default ne "") {
- if ( Param("strictvaluechecks") &&
+ if ( Param("strictvaluechecks") && $::CheckOptionValues &&
($default ne $::dontchange) && ($default ne "-All-") &&
($default ne "DUPLICATE") ) {
print "Possible bug database corruption has been detected. " .
diff --git a/query.cgi b/query.cgi
index c7d49ace8..5cb40f147 100755
--- a/query.cgi
+++ b/query.cgi
@@ -26,6 +26,11 @@ use strict;
require "CGI.pl";
+$::CheckOptionValues = 0; # It's OK if we have some bogus things in the
+ # pop-up lists here, from a remembered query
+ # that is no longer quite valid. We don't
+ # want to crap out in the query page.
+
# Shut up misguided -w warnings about "used only once":
use vars @::legal_resolution,