mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Merge "SECURITY: Unbreak blocks shorter than one hour"
This commit is contained in:
commit
357dcdce5c
|
@ -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