Commit 5f38cf83 authored by racham%netscape.com's avatar racham%netscape.com
Browse files

Fixing bug 80985. Allowing valid characters in the hostname during the mail...

Fixing bug 80985. Allowing valid characters in the hostname during the mail accountsetup. sr=sspitzer
parent 94e6c3db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
  }