missing backslash

This commit is contained in:
Mario Vavti 2019-05-15 11:38:23 +02:00
parent 71ecb470b6
commit 3c8867a1e8

View File

@ -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) {