From 734f5c796920014a4de2c8e7d3e3d491f931d519 Mon Sep 17 00:00:00 2001 From: Znote Date: Wed, 16 Oct 2019 22:45:48 +0200 Subject: [PATCH] Dont allow _ symbol when creating character name. --- createcharacter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createcharacter.php b/createcharacter.php index 2d653a6..bb25a97 100644 --- a/createcharacter.php +++ b/createcharacter.php @@ -24,7 +24,7 @@ if (empty($_POST) === false) { if (user_character_exist($_POST['name']) !== false) { $errors[] = 'Sorry, that character name already exist.'; } - if (!preg_match("/^[a-zA-Z_ ]+$/", $_POST['name'])) { + if (!preg_match("/^[a-zA-Z ]+$/", $_POST['name'])) { $errors[] = 'Your name may only contain a-z, A-Z and spaces.'; } if (strlen($_POST['name']) < $config['minL'] || strlen($_POST['name']) > $config['maxL']) {