From 61166cb4f187190eb66b69a027e3c9ec5ec610cc Mon Sep 17 00:00:00 2001 From: Jon <134811123+jonsmy@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:08:24 +0000 Subject: [PATCH] instance-config.php: update shortener regex --- 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 9f731e6f..8283b0bb 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -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'