From 2504e3ba0ad5796562a204e20ee0da5ffe81793f Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Wed, 3 Jul 2019 19:45:48 -0700
Subject: [PATCH] Use hex colors over 9 instead of decimal

---
 srb2query.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/srb2query.php b/srb2query.php
index fb68d4d..5254254 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],
-- 
GitLab