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

Mixologic’s picture

Component: Database » Development Environments

How 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.

~

drumm’s picture

That wouldn't make them valid email addresses.

drumm’s picture

Status: Active » Fixed

This was changed to md5(name).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.