Add a english charset filter for displaying names
This commit is contained in:
1 parent
ed0791c6bf
commit
b5360ef5ca
1 file changed
+1
-1
+1
-1
@@ -139,7 +139,7 @@ $lastInsertId = $_GET['highlight'] ?? null;
|
|||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
echo "<div class=\"named-color" . ($lastInsertId != null && $lastInsertId == $row['id'] && ($row['timestamp'] > time() - 10) ? " highlight" : "") . "\">";
|
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 "<div class=\"color\" style=\"background: #" . $row['color'] . ";\"></div>";
|
||||||
echo "<p>" . htmlspecialchars($censor->censorString(base64_decode($row['name']))['clean']) . " • #" . $row["color"] . "</p>";
|
echo "<p>" . htmlspecialchars($censor->censorString(preg_replace('/[^a-zA-Z0-9\s\-\_]/', '', base64_decode($row['name'])))['clean']) . " • #" . $row["color"] . "</p>";
|
||||||
if ($row['hostname'] == hash('sha256', $_SERVER["HTTP_CF_CONNECTING_IP"])) {
|
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'] . "'\">";
|
echo "<img src=\"assets/delete.svg\" alt=\"Delete\" style=\"cursor: pointer; width: 24px; height: 24px;\" onclick=\"window.location.href='delete.php?id=" . $row['id'] . "'\">";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user