diff --git a/include/event.php b/include/event.php index 1c34e03cc..c49c9220f 100644 --- a/include/event.php +++ b/include/event.php @@ -40,7 +40,7 @@ function format_event_html($ev, $simple = false) { if ($simple) { $o = "
" . BBCode::convert($ev['desc']) . "
"; $o .= "" . $event_start . "
"; @@ -49,7 +49,7 @@ function format_event_html($ev, $simple = false) { } if (strlen($ev['location'])) { - $o .= "" . $ev['location'] . "
"; + $o .= "" . BBCode::convert($ev['location']) . "
"; } return $o; diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 744ddd46b..9eb5cfd72 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1604,9 +1604,7 @@ class BBCode $text = preg_replace_callback( "/\[map\](.*?)\[\/map\]/ism", function ($match) { - // the extra space in the following line is intentional - // Whyyy? - @MrPetovan - return str_replace($match[0], '' . Map::byLocation($match[1]) . '
', $match[0]); }, $text ); @@ -1615,9 +1613,7 @@ class BBCode $text = preg_replace_callback( "/\[map=(.*?)\]/ism", function ($match) { - // the extra space in the following line is intentional - // Whyyy? - @MrPetovan - return str_replace($match[0], '' . Map::byCoordinates(str_replace('/', ' ', $match[1])) . '
', $match[0]); }, $text );