Fixing bug 80985. Allowing valid characters in the hostname during the mail accountsetup. sr=sspitzer

This commit is contained in:
racham%netscape.com 2001-05-15 19:02:48 +00:00
parent 94e6c3db17
commit 5f38cf839e

View File

@ -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;
}