diff --git a/includes/model/User_model.php b/includes/model/User_model.php index 26eb42c4..6cf1c2d7 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -266,14 +266,14 @@ function User_ids() } /** - * Strip unwanted characters from a users nick. - * + * Strip unwanted characters from a users nick. Allowed are letters, numbers, connecting punctuation and simple space. + * Nick is trimmed. * @param string $nick * @return string */ function User_validate_Nick($nick) { - return preg_replace('/([^\wüöäß. +*-]{1,})/ui', '', $nick); + return preg_replace('/([^\p{L}\p{N}-_ ]+)/ui', '', trim($nick)); } /**