From: Alexander Ebert Date: Fri, 22 Jul 2016 11:24:14 +0000 (+0200) Subject: Fixed detection of HTML X-Git-Tag: 3.0.0_Beta_1~1000 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5d300eaabae1d7c583ddbecafac23e9aa4d9d08;p=GitHub%2FWoltLab%2FWCF.git Fixed detection of HTML --- diff --git a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php index 686d9a81f1..c8a879a024 100644 --- a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php @@ -157,7 +157,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { * @return string parsed html string */ protected function convertToHtml($html) { - if (!preg_match('~^<[a-zA-Z\-]+~', $html) || !preg_match('~$~', $html)) { + if (!preg_match('~^<[a-zA-Z\-]+~', $html) || !preg_match('~$~', $html)) { $html = StringUtil::encodeHTML($html); $parts = preg_split('~(\n+)~', $html, null, PREG_SPLIT_DELIM_CAPTURE);