aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index f69cae740..9e31fc4a7 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -61,12 +61,14 @@ if ($single) {
}
}
} else {
+ my $count = 0;
foreach my $id ($cgi->param('id')) {
# Be kind enough and accept URLs of the form: id=1,2,3.
my @ids = split(/,/, $id);
my @check_bugs;
foreach my $bug_id (@ids) {
+ last if $count == 100;
next unless $bug_id;
my $bug = new Bugzilla::Bug({ id => $bug_id, cache => 1 });
if (!$bug->{error}) {
@@ -75,6 +77,7 @@ if ($single) {
else {
push(@illegal_bugs, { bug_id => trim($bug_id), error => $bug->{error} });
}
+ $count++;
}
$user->visible_bugs(\@check_bugs);