From c9aaffd4541554af069e4ac097c39f567b02f55a Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sat, 26 Nov 2011 01:08:58 +0100 Subject: Bug 255606: Do not let buglist.cgi return all bugs by default r/a=mkanat --- Bugzilla/Search.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index d47e0ae99..6bbf4ab42 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1168,6 +1168,11 @@ sub _sql_where { if ($clause_sql) { $where .= "\n AND " . $clause_sql; } + elsif (!Bugzilla->params->{'search_allow_no_criteria'} + && !$self->{allow_unlimited}) + { + ThrowUserError('buglist_parameters_required'); + } return $where; } -- cgit v1.2.3-24-g4f1b