aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
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) {