mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Properly encode username in Message::getUsername()
This commit is contained in:
parent
d0b9eff8eb
commit
a30a922a64
@ -128,7 +128,7 @@ public function getUsername($colored = false) {
|
|||||||
$username = \chat\util\ChatUtil::gradient($username, $this->color1, $this->color2);
|
$username = \chat\util\ChatUtil::gradient($username, $this->color1, $this->color2);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$username = '<span class="defaultColor">'.$username.'</span>';
|
$username = '<span class="defaultColor">'.\wcf\util\StringUtil::encodeHTML($username).'</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user