From 541100e6ace2e19bd0b2efd7689235697cdc6419 Mon Sep 17 00:00:00 2001 From: overflowerror Date: Sun, 3 Dec 2023 13:40:48 +0100 Subject: [PATCH] feat: Change charset Remove vocals to substitution characters so no words are possible. --- controllers/manage/POST.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/manage/POST.php b/controllers/manage/POST.php index 1b24703..3244b07 100644 --- a/controllers/manage/POST.php +++ b/controllers/manage/POST.php @@ -9,7 +9,8 @@ const MAX_LENGTH = 20; const DEFAULT_SCHEMA = "http://"; function generateCandidate(string $length) { - $charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + //$charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + $charset = "bcdfghklmnpqrstvwxyzBCDFGHKLMNPQRSTVWXYZ256789"; return join("", array_map(