Commit 2504e3ba by James R.

Use hex colors over 9 instead of decimal

parent 817f1c61
......@@ -635,7 +635,7 @@ class SRB2Query
for ($i = 0x00; $i <= 0x0F; ++$i)
{
$codes[$i] = chr(0x80 + $i);
$alts [$i] = '^' . $i;
$alts [$i] = '^' . dechex($i);
}
// Remove anything that is not printable ASCII and sanitize!
......@@ -645,6 +645,7 @@ class SRB2Query
// Doing this backward for a good reason; so that higher numbers get a
// chance to be matched!
// Not necessary anymore though...
for ($i = 0x0F; $i >= 0x00; --$i)
{
$s = str_replace($alts[$i],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment