From 20652870b6dde1a071d58e9850921e0a3fd1a6be Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 6 Oct 2020 04:55:28 +0200 Subject: [PATCH] Update src/Content/Text/BBCode.php Co-authored-by: Hypolite Petovan --- src/Content/Text/BBCode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 94b1c35d1b..594cd9a6ce 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -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;