1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Properly encode username in Message::getUsername()

This commit is contained in:
Maximilian Mader 2014-12-12 21:13:30 +01:00
parent d0b9eff8eb
commit a30a922a64

View File

@ -128,7 +128,7 @@ public function getUsername($colored = false) {
$username = \chat\util\ChatUtil::gradient($username, $this->color1, $this->color2);
}
else {
$username = '<span class="defaultColor">'.$username.'</span>';
$username = '<span class="defaultColor">'.\wcf\util\StringUtil::encodeHTML($username).'</span>';
}
}