Fix url shortener regex

This commit is contained in:
towards-a-new-leftypol 2024-02-25 22:46:39 -05:00
parent f7e6bb37c5
commit 0fa2347552
1 changed files with 1 additions and 1 deletions

View File

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