]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Content/Text/BBCode.php
authorMichael Vogel <icarus@dabo.de>
Tue, 6 Oct 2020 02:55:28 +0000 (04:55 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 02:55:28 +0000 (04:55 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Content/Text/BBCode.php

index 94b1c35d1b67b3c8465c44d03ada8fb87fc5b1c9..594cd9a6ce479ba578b1878740e2cf968c7ee2a1 100644 (file)
@@ -1225,6 +1225,7 @@ class BBCode
                $bbcode = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/ism", ' $1 ', $bbcode);
                $bbcode = preg_replace("/\[img.*?\[\/img\]/ism", ' ', $bbcode);
 
+               $bbcode = preg_replace('/[@!#]\[url\=.*?\].*?\[\/url\]/ism', '', $bbcode);
                $bbcode = preg_replace("/\[url=[^\[\]]*\](.*)\[\/url\]/Usi", ' $1 ', $bbcode);
                $bbcode = preg_replace('/[@!#]?\[url.*?\[\/url\]/ism', '', $bbcode);
                return $bbcode;