diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-02-20 08:44:03 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-02-20 08:44:03 +0100 |
commit | 60712d5d6f5db2a468bea0447744c06d5e8a487c (patch) | |
tree | a067c48617f748d6543b6d2759cd6e5ccdccff5c /Bugzilla/Config | |
parent | 6aad3a0979417a4e131a2ac45ceabfe840aa4af6 (diff) | |
download | bugzilla-60712d5d6f5db2a468bea0447744c06d5e8a487c.tar.gz bugzilla-60712d5d6f5db2a468bea0447744c06d5e8a487c.tar.xz |
Bug 632717: Limit the total number of results that a search can ever return.
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Config')
-rw-r--r-- | Bugzilla/Config/Query.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Bugzilla/Config/Query.pm b/Bugzilla/Config/Query.pm index 821f09fc6..3513b12e3 100644 --- a/Bugzilla/Config/Query.pm +++ b/Bugzilla/Config/Query.pm @@ -71,8 +71,14 @@ sub get_param_list { name => 'specific_search_allow_empty_words', type => 'b', default => 1 - } - + }, + + { + name => 'max_search_results', + type => 't', + default => '10000', + checker => \&check_numeric + }, ); return @param_list; } |