Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Email addresses for users and multiple_email are sanitized to {user name}@sanitized.invalid. If the username contains a space, it is no longer a valid email. Ideally, spaces should be replaced with a valid character in email addresses, but not Drupal usernames; so the replacement has no chance of causing duplicate email addresses.
Comments
Comment #1
MixologicHow about we convert spaces in usernames to two spaces?http://cgit.drupalcode.org/drupal/tree/modules/user/user.module?h=7.x#n634
Er. I just realized what I said there. Tilde characters are legal in email addresses but illegal chars in usernames on d.o.
~
Comment #2
drummThat wouldn't make them valid email addresses.
Comment #3
drummThis was changed to
md5(name)
.