From 29c5e74d3103a200470d799d6542a85a7a46c7d0 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 15 May 2019 09:38:23 +0000 Subject: missing backslash (cherry picked from commit 3c8867a1e861f75cb7a11e2ea6a15b2d2e457b7b) --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bbcode.php b/include/bbcode.php index 70183fda3..485a1f5b2 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -987,7 +987,7 @@ function bbcode($Text, $options = []) { // this is replaced in prepare_body() which has knowledge of the item location if ($cache) { $Text = str_replace([ '[map]','[/map]' ], [ '','' ], $Text); - $Text = preg_replace('/[map=(.*?)\]/ism','$1',$Text); + $Text = preg_replace('/\[map=(.*?)\]/ism','$1',$Text); } else { if (strpos($Text,'[/map]') !== false) { -- cgit v1.2.3