From abcd7bf18cb0bcd7fd492191977805d15c28646b Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 6 Apr 2004 08:19:15 +0000 Subject: Fix for bug 234797: adds a "limit" param for limiting the number of results returned from a search. r=justdave a=justdave --- buglist.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buglist.cgi b/buglist.cgi index 6a7181337..98b7ff116 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -676,7 +676,10 @@ if ($db_order =~ /bugs.target_milestone/) { $query .= " ORDER BY $db_order " if ($order); -if ($fulltext) { +if ($::FORM{'limit'} && detaint_natural($::FORM{'limit'})) { + $query .= " LIMIT $::FORM{'limit'}"; +} +elsif ($fulltext) { $query .= " LIMIT 200"; } -- cgit v1.2.3-24-g4f1b