This commit is contained in:
Miek Gieben 2012-11-21 16:27:36 +01:00
parent 37d3009cec
commit aba66ed110
1 changed files with 5 additions and 5 deletions

View File

@ -190,11 +190,11 @@ func IsDomainName(s string) (uint8, uint8, bool) { // copied from net package.
partlen++
case c == '\\':
// Ok
case c == '@':
if last != '\\' {
return 0, uint8(l - longer), false
}
partlen++
// case c == '@':
// if last != '\\' {
// return 0, uint8(l - longer), false
// }
// partlen++
case '0' <= c && c <= '9':
ok = true
partlen++