From 9c2664caccf3d5786470023067f4db7a3225da73 Mon Sep 17 00:00:00 2001 From: discomrade <83621080+discomrade@users.noreply.github.com> Date: Tue, 4 May 2021 22:30:05 +0000 Subject: [PATCH] Remove range limit for filename --- inc/instance-config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/instance-config.php b/inc/instance-config.php index fed17dbd..98bace34 100644 --- a/inc/instance-config.php +++ b/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,12}.jpg/' // Six to 12 lowercase letters, .jpg + 'filename' => '/[a-z]+.jpg/' // Only lowercase letters, .jpg ), 'action' => 'reject', 'message' => 'Flood detected; Post discarded.'