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\""; }