diff options
author | lpsolit%gmail.com <> | 2007-02-28 22:58:22 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-02-28 22:58:22 +0100 |
commit | e4bb080df93feb9751079a931f10b25cd8f66961 (patch) | |
tree | d7f12732cca18518246dddf4c31787ceffb01c46 /buglist.cgi | |
parent | 41732933eeb2f25abdd479e5a024cd258c502fd3 (diff) | |
download | bugzilla-e4bb080df93feb9751079a931f10b25cd8f66961.tar.gz bugzilla-e4bb080df93feb9751079a931f10b25cd8f66961.tar.xz |
Bug 234226: "Find a specific bug" shouldn't allow empty search - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=justdave
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 6 |
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 ################################################################################ |