mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 01:48:15 +03:00
fix embarrasing bug in checking if string is ascii
result reversed for issue #179 and issue #157
This commit is contained in:
parent
edb6e8d15c
commit
81c179bb4c
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user