From c5d300eaabae1d7c583ddbecafac23e9aa4d9d08 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 22 Jul 2016 13:24:14 +0200 Subject: [PATCH] Fixed detection of HTML --- .../files/lib/system/html/input/HtmlInputProcessor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1