We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b764ee81 authored by mattl's avatar mattl

Nickname::normalize now checks for path name collision too.

parent 352bef23
......@@ -118,6 +118,9 @@ class Nickname
if (!self::isCanonical($str)) {
throw new NicknameInvalidException();
if (!User::allowed_nickname($str)) {
throw new NicknameBlacklistException();
return $str;
......@@ -194,3 +197,12 @@ class NicknameTooLongException extends NicknameInvalidException
class NicknameBlacklistException extends NicknameInvalidException
protected function defaultMessage()
// TRANS: Validation error in form for registration, profile and group settings, etc.
return _('Nickname is disallowed through blacklist or system path list.');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment