Skip to content
Snippets Groups Projects
Commit e2e7371d authored by James R.'s avatar James R.
Browse files

Fully allow custom colors

parent c5e9827d
No related branches found
No related tags found
No related merge requests found
......@@ -639,8 +639,9 @@ class SRB2Query
}
// Remove anything that is not printable ASCII and sanitize!
$s = '<span>' . htmlentities(preg_replace('/[\x00-\x19\x7F-\xFF]/', '',
str_replace($codes, $alts, $s))) . '</span>';
$s = '<span style="color:' . $this->colors[0] . '">' .
htmlentities(preg_replace('/[\x00-\x19\x7F-\xFF]/', '',
str_replace($codes, $alts, $s))) . '</span>';
for ($i = 0x00; $i <= 0x0F; ++$i)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment