Lowered limit for wfThumbIsAttemptThrottled() to 4
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 21 Apr 2014 18:19:52 +0000 (11:19 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 21 Apr 2014 18:19:52 +0000 (11:19 -0700)
Change-Id: I2d91647abdaff820eb87b0bd45505ffa1fbc25fe

thumb.php

index a2a0e93..df6c416 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -320,8 +320,8 @@ function wfStreamThumb( array $params ) {
        } elseif ( $user->pingLimiter( 'renderfile' ) ) {
                wfThumbError( 500, wfMessage( 'actionthrottledtext' ) );
                return;
-       } elseif ( wfThumbIsAttemptThrottled( $img, $thumbName, 5 ) ) {
-               wfThumbError( 500, wfMessage( 'thumbnail_image-failure-limit', 5 ) );
+       } elseif ( wfThumbIsAttemptThrottled( $img, $thumbName, 4 ) ) {
+               wfThumbError( 500, wfMessage( 'thumbnail_image-failure-limit', 4 ) );
                return;
        }