]> git.mxchange.org Git - friendica.git/commitdiff
Fixes RegExp
authorMichael <heluecht@pirati.ca>
Sat, 18 Apr 2020 10:38:08 +0000 (10:38 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 18 Apr 2020 10:38:08 +0000 (10:38 +0000)
src/Model/Tag.php

index 61a1575a1ce76b78ceff9d759a44bbcf9d318f31..f0bddb25c0d7e7edf9ea1b9285aa60668b9938ea 100644 (file)
@@ -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;
                }