From 61b8062377e61b5e6fe98e485b5f46b39b10dbed Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 13 May 2015 17:22:52 +0200 Subject: [PATCH] Fixed smiley-parsing in list-tags --- .../install/files/lib/system/bbcode/MessageParser.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php index 581a3612e7..0a4d202725 100644 --- a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php @@ -134,7 +134,7 @@ class MessageParser extends BBCodeParser { protected function parseSmilies($text, $enableHtml = false) { foreach ($this->smilies as $code => $html) { //$text = preg_replace('~(?)~', $html, $text); - $text = preg_replace('~(?<=^|\s)'.preg_quote((!$enableHtml ? StringUtil::encodeHTML($code) : $code), '~').'(?=$|\s|'.(!$enableHtml ? '|
' : '').')~', $html, $text); + $text = preg_replace('~(?<=^|\s|
  • )'.preg_quote((!$enableHtml ? StringUtil::encodeHTML($code) : $code), '~').'(?=$|\s|
  • '.(!$enableHtml ? '|
    ' : '').')~', $html, $text); } return $text; -- 2.20.1