mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
SECURITY: Unbreak blocks shorter than one hour
Bug: T238768 Change-Id: I8820a6e2953255f409ff8ddc2b41dcef2f338e37
This commit is contained in:
parent
956eca36cb
commit
759cb38bf5
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue