Remove range limit for filename

This commit is contained in:
discomrade 2021-05-04 22:30:05 +00:00 committed by GitHub
parent c50491430d
commit 9c2664cacc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ $config['wordfilters'][] = array('/nigg/i', 'uygh', true);
$config['filters'][] = array(
'condition' => array(
'!body' => '/(^[^>]|[\r\n][^>])/', // Greentexting only (does not contain non-greentext)
'filename' => '/[a-z]{6,12}.jpg/' // Six to 12 lowercase letters, .jpg
'filename' => '/[a-z]+.jpg/' // Only lowercase letters, .jpg
),
'action' => 'reject',
'message' => 'Flood detected; Post discarded.'