Fixes RegExp

This commit is contained in:
Michael 2020-04-18 10:38:08 +00:00
parent 3ce9386cb1
commit 539a5c5da1

View 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;
}