From a8a69eaaa917f1547289607b0bf29685a0fcae9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 17 Dec 2011 18:40:20 +0100 Subject: [PATCH] Encoded the chars in ChatUtil::gradient() --- file/lib/util/ChatUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/lib/util/ChatUtil.class.php b/file/lib/util/ChatUtil.class.php index 9f8c5b8..85cddc2 100644 --- a/file/lib/util/ChatUtil.class.php +++ b/file/lib/util/ChatUtil.class.php @@ -39,7 +39,7 @@ public static function gradient($string, $start, $end) { $result = ''; for ($i = 0, $max = count($string); $i < $max; $i++) { - $result .= ''.$string[$i].''; + $result .= ''.StringUtil::encodeHTML($string[$i]).''; } return $result;