summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuglist.cgi5
1 files changed, 4 insertions, 1 deletions
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";
}