From b5360ef5cafa2280978d66c302deec85ed69f731 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sat, 8 Mar 2025 11:08:21 -0700 Subject: [PATCH] Add a english charset filter for displaying names --- webroot/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/index.php b/webroot/index.php index ac0b494..1ee0dbf 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -139,7 +139,7 @@ $lastInsertId = $_GET['highlight'] ?? null; foreach ($result as $row) { echo "
time() - 10) ? " highlight" : "") . "\">"; echo "
"; - echo "

" . htmlspecialchars($censor->censorString(base64_decode($row['name']))['clean']) . " • #" . $row["color"] . "

"; + echo "

" . htmlspecialchars($censor->censorString(preg_replace('/[^a-zA-Z0-9\s\-\_]/', '', base64_decode($row['name'])))['clean']) . " • #" . $row["color"] . "

"; if ($row['hostname'] == hash('sha256', $_SERVER["HTTP_CF_CONNECTING_IP"])) { echo "\"Delete\""; }