Page MenuHomePhabricator

T238768.patch

Authored By
Daimona
Nov 20 2019, 5:57 PM
Size
957 B
Referenced Files
None
Subscribers
None

T238768.patch

From f5ce245a41dda7fab7817237f8b6c8d1c2cb5dff Mon Sep 17 00:00:00 2001
From: Daimona Eaytoy <daimona.wiki@gmail.com>
Date: Wed, 20 Nov 2019 18:56:31 +0100
Subject: [PATCH] SECURITY: Unbreak blocks shorter than one hour
Bug: T238768
Change-Id: I8820a6e2953255f409ff8ddc2b41dcef2f338e37
---
includes/AbuseFilterRunner.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/includes/AbuseFilterRunner.php b/includes/AbuseFilterRunner.php
index 6106d579..a5e017d8 100644
--- a/includes/AbuseFilterRunner.php
+++ b/includes/AbuseFilterRunner.php
@@ -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 = [

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8223629
Default Alt Text
T238768.patch (957 B)

Event Timeline