1
1
Fork 0
mirror of https://github.com/mjl-/mox.git synced 2025-04-21 21:40:01 +03:00

fix embarrasing bug in checking if string is ascii

result reversed

for issue  and issue 
This commit is contained in:
Mechiel Lukkien 2024-10-04 20:05:28 +02:00
parent edb6e8d15c
commit 81c179bb4c
No known key found for this signature in database

View file

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