From: Joshua Rüsweg Date: Sun, 29 Jan 2017 16:06:19 +0000 (+0100) Subject: convert htmlspecialchars to StringUtil::encodeHTML() X-Git-Tag: 3.0.2~38^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c62d1d4887fff9c855e2fe28c5aec7610da9d977;p=GitHub%2FWoltLab%2FWCF.git convert htmlspecialchars to StringUtil::encodeHTML() --- 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;