missing backslash

(cherry picked from commit 3c8867a1e8)
This commit is contained in:
Mario Vavti 2019-05-15 09:38:23 +00:00 committed by Mario
parent c439fe0437
commit 29c5e74d31

View File

@ -987,7 +987,7 @@ function bbcode($Text, $options = []) {
// this is replaced in prepare_body() which has knowledge of the item location // this is replaced in prepare_body() which has knowledge of the item location
if ($cache) { if ($cache) {
$Text = str_replace([ '[map]','[/map]' ], [ '','' ], $Text); $Text = str_replace([ '[map]','[/map]' ], [ '','' ], $Text);
$Text = preg_replace('/[map=(.*?)\]/ism','$1',$Text); $Text = preg_replace('/\[map=(.*?)\]/ism','$1',$Text);
} }
else { else {
if (strpos($Text,'[/map]') !== false) { if (strpos($Text,'[/map]') !== false) {