From e2e7371dbb426b4a42f88c22ec8992344b52d3a8 Mon Sep 17 00:00:00 2001 From: James R <justsomejames2@gmail.com> Date: Sun, 30 Jun 2019 13:06:18 -0700 Subject: [PATCH] Fully allow custom colors --- srb2query.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srb2query.php b/srb2query.php index 0d39ff5..d2fce49 100644 --- a/srb2query.php +++ b/srb2query.php @@ -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) { -- GitLab