diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-01-31 10:24:18 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-01-31 10:25:37 -0800 |
commit | f6efc6bf1de0d12040ef8881bb9c795833be9e6b (patch) | |
tree | f149cb2efa4b65390b6188a4d1d9825be8934ec1 /custom_userhistory.cgi | |
parent | Merge branch 'bugstest' (diff) | |
download | bugzilla-f6efc6bf1de0d12040ef8881bb9c795833be9e6b.tar.gz bugzilla-f6efc6bf1de0d12040ef8881bb9c795833be9e6b.tar.bz2 bugzilla-f6efc6bf1de0d12040ef8881bb9c795833be9e6b.zip |
custom_userhistory: be clear about all exits
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'custom_userhistory.cgi')
-rwxr-xr-x | custom_userhistory.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/custom_userhistory.cgi b/custom_userhistory.cgi index 7c13740ba..2208c8134 100755 --- a/custom_userhistory.cgi +++ b/custom_userhistory.cgi @@ -20,6 +20,10 @@ print $cgi->header(); my $matchstr = $cgi->param('matchstr'); my $userid = $cgi->param('userid'); +if(!defined($matchstr) and !defined($userid)) { + print "No search parameters specified!<br/>"; + exit(0); +} exit 0 if !defined($matchstr) and !defined($userid); my $limit = $cgi->param('limit'); |