summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index d2695a66f..172394781 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -20,7 +20,7 @@ use Bugzilla::Keyword;
use Bugzilla::Bug;
use Bugzilla::Hook;
use Bugzilla::CGI;
-use Bugzilla::Util qw(detaint_natural);
+use Bugzilla::Util qw(detaint_natural remote_ip);
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
@@ -28,6 +28,10 @@ my $vars = {};
my $user = Bugzilla->login();
+unless ($user->id) {
+ Bugzilla->check_rate_limit("show_bug", remote_ip());
+}
+
# BMO: add show_bug_format for experimental UI work
my $format_params = {
format => scalar $cgi->param('format'),