Increase length range of filename detection
This commit is contained in:
parent
ebd4b167ff
commit
c50491430d
|
@ -406,7 +406,7 @@ $config['wordfilters'][] = array('/nigg/i', 'uygh', true);
|
||||||
$config['filters'][] = array(
|
$config['filters'][] = array(
|
||||||
'condition' => array(
|
'condition' => array(
|
||||||
'!body' => '/(^[^>]|[\r\n][^>])/', // Greentexting only (does not contain non-greentext)
|
'!body' => '/(^[^>]|[\r\n][^>])/', // Greentexting only (does not contain non-greentext)
|
||||||
'filename' => '/[a-z]{6}.jpg/' // Six lowercase letters, .jpg
|
'filename' => '/[a-z]{6,12}.jpg/' // Six to 12 lowercase letters, .jpg
|
||||||
),
|
),
|
||||||
'action' => 'reject',
|
'action' => 'reject',
|
||||||
'message' => 'Flood detected; Post discarded.'
|
'message' => 'Flood detected; Post discarded.'
|
||||||
|
|
Loading…
Reference in New Issue