From: Marcel Werk Date: Wed, 31 Jul 2013 11:05:40 +0000 (+0200) Subject: Fixed HTML issues in simplified output X-Git-Tag: 2.0.0_Beta_7~75^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1d2822f1b97e0830ccad7f2819dda4e3e793c92;p=GitHub%2FWoltLab%2FWCF.git Fixed HTML issues in simplified output --- diff --git a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php index 78d1ae71b7..f6c4c110a5 100644 --- a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php @@ -101,6 +101,11 @@ class MessageParser extends BBCodeParser { $this->message = nl2br($this->message); } } + else { + if ($this->getOutputType() == 'text/simplified-html') { + $this->message = StringUtil::stripHTML($this->message); + } + } // parse bbcodes if ($enableBBCodes) {