From c62d1d4887fff9c855e2fe28c5aec7610da9d977 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Sun, 29 Jan 2017 17:06:19 +0100 Subject: [PATCH] convert htmlspecialchars to StringUtil::encodeHTML() --- wcfsetup/install/files/lib/data/notice/Notice.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/notice/Notice.class.php b/wcfsetup/install/files/lib/data/notice/Notice.class.php index 03a35191ae..e418a9cd09 100644 --- a/wcfsetup/install/files/lib/data/notice/Notice.class.php +++ b/wcfsetup/install/files/lib/data/notice/Notice.class.php @@ -47,7 +47,7 @@ class Notice extends DatabaseObject implements IRouteController { ]); if (!$this->noticeUseHtml) { - $text = nl2br(htmlspecialchars($text), false); + $text = nl2br(StringUtil::encodeHTML($text), false); } return $text; -- 2.20.1