From 0fa23475526e118c2401fd29e231ed6286dc3172 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Sun, 25 Feb 2024 22:46:39 -0500 Subject: [PATCH] Fix url 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 afd8ae0b..b18e24b0 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -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'