convert htmlspecialchars to StringUtil::encodeHTML()
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 29 Jan 2017 16:06:19 +0000 (17:06 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 29 Jan 2017 16:06:19 +0000 (17:06 +0100)
wcfsetup/install/files/lib/data/notice/Notice.class.php

index 03a35191ae37670936ce73fa619e30d3708b8d28..e418a9cd09de4d990d5f92404824ffb2c25f389d 100644 (file)
@@ -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;