diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-10-28 15:13:41 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-10-28 15:13:41 +0000 |
commit | d0169f4b412e409dad9031d51f362bed0b55c1fd (patch) | |
tree | 6009a9da13d9d793f4721a5c8227f30d3ce39c03 /modules | |
parent | 42b1dc6215c3aa55a6408eddbfcecca09a28e352 (diff) | |
download | brdo-d0169f4b412e409dad9031d51f362bed0b55c1fd.tar.gz brdo-d0169f4b412e409dad9031d51f362bed0b55c1fd.tar.bz2 |
#91473: Fix user.module username validation with nul characters
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user/user.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 0e3fe1056..5ad4c26f0 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -248,7 +248,8 @@ function user_validate_name($name) { '\x{205F}-\x{206F}'. // Various text hinting characters '\x{FEFF}'. // Byte order mark '\x{FF01}-\x{FF60}'. // Full-width latin - '\x{FFF9}-\x{FFFD}]/u', // Replacement characters + '\x{FFF9}-\x{FFFD}'. // Replacement characters + '\x{0}]/u', // NULL byte $name)) { return t('The username contains an illegal character.'); } |