From: Michael Date: Sat, 18 Apr 2020 10:38:08 +0000 (+0000) Subject: Fixes RegExp X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=539a5c5da1c46b96a743fd882e4c7c5263af6237;p=friendica.git Fixes RegExp --- diff --git a/src/Model/Tag.php b/src/Model/Tag.php index 61a1575a1c..f0bddb25c0 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; }