instance-config.php: update shortener regex

This commit is contained in:
Jon 2024-03-15 18:08:24 +00:00 committed by towards-a-new-leftypol
parent 10015def12
commit 61166cb4f1
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ $config['filters'][] = array(
$config['filters'][] = array(
'condition' => array(
'body' => '/(^|\s)((https?):\/\/)?[\w-]{2,6}\.[a-z]{2,4}\/\w{2,8}(\s|$)/i', // url shorteners are not allowed
'body' => '/(^|\s)((https?):\/\/)?[\w-]{2,6}\.[a-z]{2,4}\/\w{2,8}(#[^\s]+)?(\s|$)/i', // url shorteners are not allowed
),
'action' => 'reject',
'message' => 'Url shorteners are not allowed'