Add a english charset filter for displaying names

This commit is contained in:
Lncvrt committed 2025-03-08 11:08:21 -07:00
1 parent ed0791c6bf
commit b5360ef5ca
1 file changed
+1 -1
+1 -1
View File
@@ -139,7 +139,7 @@ $lastInsertId = $_GET['highlight'] ?? null;
foreach ($result as $row) {
echo "<div class=\"named-color" . ($lastInsertId != null && $lastInsertId == $row['id'] && ($row['timestamp'] > time() - 10) ? " highlight" : "") . "\">";
echo "<div class=\"color\" style=\"background: #" . $row['color'] . ";\"></div>";
echo "<p>" . htmlspecialchars($censor->censorString(base64_decode($row['name']))['clean']) . " &bull; #" . $row["color"] . "</p>";
echo "<p>" . htmlspecialchars($censor->censorString(preg_replace('/[^a-zA-Z0-9\s\-\_]/', '', base64_decode($row['name'])))['clean']) . " &bull; #" . $row["color"] . "</p>";
if ($row['hostname'] == hash('sha256', $_SERVER["HTTP_CF_CONNECTING_IP"])) {
echo "<img src=\"assets/delete.svg\" alt=\"Delete\" style=\"cursor: pointer; width: 24px; height: 24px;\" onclick=\"window.location.href='delete.php?id=" . $row['id'] . "'\">";
}