diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index 33165a39..05c365b5 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -26,6 +26,7 @@ class BBCode extends Extension { $text = preg_replace("/\[h2\](.*?)\[\/h2\]/s", "

\\1

", $text); $text = preg_replace("/\[h3\](.*?)\[\/h3\]/s", "

\\1

", $text); $text = preg_replace("/\[h4\](.*?)\[\/h4\]/s", "

\\1

", $text); + $text = preg_replace("/\[list\](.*?)\[\/list\]/s", "", $text); $text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "", $text); $text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "
    \\1
", $text); $text = preg_replace("/\[li\](.*?)\[\/li\]/s", "
  • \\1
  • ", $text); @@ -50,6 +51,7 @@ class BBCode extends Extension { $text = preg_replace("/\[h2\](.*?)\[\/h2\]/s", "\\1", $text); $text = preg_replace("/\[h3\](.*?)\[\/h3\]/s", "\\1", $text); $text = preg_replace("/\[h4\](.*?)\[\/h4\]/s", "\\1", $text); + $text = preg_replace("/\[list\](.*?)\[\/list\]/s", "\\1", $text); $text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "\\1", $text); $text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "\\1", $text); $text = preg_replace("/\[li\](.*?)\[\/li\]/s", "\\1", $text);