SECURITY: Unbreak blocks shorter than one hour

Bug: T238768
Change-Id: I8820a6e2953255f409ff8ddc2b41dcef2f338e37
This commit is contained in:
Daimona Eaytoy 2019-11-20 18:56:31 +01:00
parent 956eca36cb
commit 759cb38bf5

View file

@ -728,7 +728,7 @@ class AbuseFilterRunner {
}
$currentExpiry = SpecialBlock::parseExpiryInput( $expiry );
if ( $currentExpiry > SpecialBlock::parseExpiryInput( $maxExpiry ) ) {
if ( $maxExpiry === -1 || $currentExpiry > SpecialBlock::parseExpiryInput( $maxExpiry ) ) {
// Save the parameters to issue the block with
$maxExpiry = $expiry;
$blockValues = [