mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Fixing bug 80985. Allowing valid characters in the hostname during the mail accountsetup. sr=sspitzer
This commit is contained in:
parent
94e6c3db17
commit
5f38cf839e
@ -30,7 +30,7 @@ function hostnameIsIllegal(hostname)
|
||||
// this only checks for illegal characters in the hostname
|
||||
// but hostnames like "...." and "_" and ".111" will get by
|
||||
// my test.
|
||||
var validChars = hostname.match(/[A-Za-z0-9._]/g);
|
||||
var validChars = hostname.match(/[A-Za-z0-9.-]/g);
|
||||
if (!validChars || (validChars.length != hostname.length)) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user