diff --git a/src/Model/Tag.php b/src/Model/Tag.php index 61a1575a1..f0bddb25c 100644 --- a/src/Model/Tag.php +++ b/src/Model/Tag.php @@ -127,7 +127,7 @@ class Tag */ public static function storeFromBody(int $uriid, string $body, string $tags = '#@!') { - if (!preg_match_all("/([" . $tags . "])\[url\=(.*?)\](.*?)\[\/url\]/ism", $body, $result, PREG_SET_ORDER)) { + if (!preg_match_all("/([" . $tags . "])\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism", $body, $result, PREG_SET_ORDER)) { return; }