summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 948916d0f..96011d3f7 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -74,6 +74,12 @@ if (defined($searchstring)) {
# as if this had been a normal query from the beginning.
}
+# Reject empty searches from the simple search form, including
+# words being a single or several consecutive whitespaces only.
+if (defined($cgi->param('content')) && $cgi->param('content') =~ /^\s*$/) {
+ ThrowUserError("buglist_parameters_required");
+}
+
################################################################################
# Data and Security Validation
################################################################################