I experienced the following bug with a fresh Drupal 6.2 install (no contrib modules).

I tried to create a new user with an emailadress containing a German "Umlaut" (eg. ä,ö,ü) inside the domain name of that emailadress.
example: info@überraschung.de

Drupal gives an error message displaying that the emailadress is wrong.

Actually it's quite a long time since domain names containing those characters are possible and they become more and more common in use. I'm also not sure if this might be an issue concerning other non-german special characters, too.

Comments

Morgenstern’s picture

Priority: Normal » Critical

The Bug seems to be based in common.inc:

function valid_email_address($mail) {
  $user = '[a-zA-Z0-9_\-\.\+\^!#\$%&*+\/\=\?\`\|\{\}~\']+';
  $domain = '(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.?)+';
  $ipv4 = '[0-9]{1,3}(\.[0-9]{1,3}){3}';
  $ipv6 = '[0-9a-fA-F]{1,4}(\:[0-9a-fA-F]{1,4}){7}';

  return preg_match("/^$user@($domain|(\[($ipv4|$ipv6)\]))$/", $mail);
}

I'm not familiar with the syntax of preg_match but would be grateful if anybody could help me in making emailadresses with ä, ö, ü inside the domain possible.

ugerhard’s picture

Component: user system » base system
Priority: Critical » Normal
Status: Active » Closed (duplicate)