From 9c54b42a3dd13b955c9a7bd541618718a0266ab0 Mon Sep 17 00:00:00 2001 From: MichiK Date: Fri, 15 Dec 2017 00:06:34 +0100 Subject: Allow dot in user name 0f273988 changed the regular expression for user names. The new regex does not allow dots anymore in user names, stripping them silently. We already have at least one user with a dot in their name who can't login now anymore. --- includes/model/User_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/model') diff --git a/includes/model/User_model.php b/includes/model/User_model.php index 6cf1c2d7..2d1767e6 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -273,7 +273,7 @@ function User_ids() */ 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)); } /** -- cgit v1.2.3-54-g00ecf