Browse Source

Increase length range of filename detection

pull/40/head
discomrade 3 years ago
committed by GitHub
parent
commit
c50491430d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      inc/instance-config.php

2
inc/instance-config.php

@ -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}.jpg/' // Six lowercase letters, .jpg
'filename' => '/[a-z]{6,12}.jpg/' // Six to 12 lowercase letters, .jpg
),
'action' => 'reject',
'message' => 'Flood detected; Post discarded.'

Loading…
Cancel
Save