]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 100490 - better error message with no JavaScript for QuickSearch. Patch by afrank...
authorgerv%gerv.net <>
Sat, 13 Oct 2001 03:54:26 +0000 (03:54 +0000)
committergerv%gerv.net <>
Sat, 13 Oct 2001 03:54:26 +0000 (03:54 +0000)
CGI.pl

diff --git a/CGI.pl b/CGI.pl
index 42b0c4af6da073e4fb39a03cf8bc186422fdd99b..9beaaa3aa12492e0684e3b951d020235e4087507 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -240,7 +240,10 @@ sub ValidateBugID {
     # Make sure the bug number is a positive integer.
     # Whitespace can be ignored because the SQL server will ignore it.
     $id =~ /^\s*([1-9][0-9]*)\s*$/
-      || DisplayError("The bug number is invalid.") 
+      || DisplayError("The bug number is invalid. If you are trying to use " .
+                      "QuickSearch, you need to enable JavaScript in your " .
+                      "browser. To help us fix this limitation, look " .
+                      "<a href=\"http://bugzilla.mozilla.org/show_bug.cgi?id=70907\">here</a>.") 
       && exit;
 
     # Get the values of the usergroupset and userid global variables