From c676e73cf6c326bc067627d9d623494dd0b243cf Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 18 Dec 2018 12:44:09 +0100 Subject: [PATCH] php7.3: Fix username validation regex closes #523 (Login does not work ->Invalid range in character class) --- includes/model/User_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/model/User_model.php b/includes/model/User_model.php index da25a9a2..304816e8 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -116,7 +116,7 @@ function Users_by_angeltype($angeltype) */ function User_validate_Nick($nick) { - return preg_replace('/([^\p{L}\p{N}-_. ]+)/ui', '', trim($nick)); + return preg_replace('/([^\p{L}\p{N}\-_. ]+)/ui', '', trim($nick)); } /**