summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorMichiK <michik+github@michik.net>2017-12-15 00:06:34 +0100
committerMichiK <michik+github@michik.net>2017-12-15 00:06:34 +0100
commit9c54b42a3dd13b955c9a7bd541618718a0266ab0 (patch)
tree1e81d9fd8a6c1160b0a92f610fca17f332cac574 /includes
parent3ea35788be6977b448c5cd49ed9f8c7461c8c19f (diff)
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.
Diffstat (limited to 'includes')
-rw-r--r--includes/model/User_model.php2
1 files changed, 1 insertions, 1 deletions
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));
}
/**