diff options
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 427dd3aea..ad8019a99 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -862,7 +862,10 @@ sub check_rate_limit { } my $limit = join("/", @$limit); Bugzilla->audit("[rate_limit] action=$action, ip=$ip, limit=$limit, name=$name"); - ThrowUserError("rate_limit") if $action eq 'block'; + if ($action eq 'block') { + Bugzilla::ModPerl::BlockIP->block_ip($ip); + ThrowUserError("rate_limit"); + } } } } |