diff --git a/srb2query.php b/srb2query.php index fb68d4de44dcbf426e64903010c8c94025d336ca..52542542e7840bea8ade5106777df7778edfe8aa 100644 --- a/srb2query.php +++ b/srb2query.php @@ -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],