mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
fix embarrasing bug in checking if string is ascii
result reversed for issue #179 and issue #157
This commit is contained in:
@ -698,8 +698,8 @@ func analyze(ctx context.Context, log mlog.Log, resolver dns.Resolver, d deliver
|
||||
func isASCII(s string) bool {
|
||||
for _, b := range []byte(s) {
|
||||
if b >= 0x80 {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
}
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user