Skip to content

Commit

Permalink
fix embarrasing bug in checking if string is ascii
Browse files Browse the repository at this point in the history
result reversed

for issue #179 and issue #157
  • Loading branch information
mjl- committed Oct 4, 2024
1 parent edb6e8d commit 81c179b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smtpserver/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 81c179b

Please sign in to comment.