From 3c8867a1e861f75cb7a11e2ea6a15b2d2e457b7b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 15 May 2019 11:38:23 +0200 Subject: missing backslash --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/bbcode.php') 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