Skip to content

Commit

Permalink
fixup! fix (ldap): a more complete fix for escapeValue(...) (rfc4514)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlambrt committed Jul 21, 2023
1 parent 126bbfa commit 4e72a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ func escapeValue(input string) string {
escFn(char)
continue
case char < ' ' || char > '~':
// anything that's not between the ascii space and tilde must by hex
// anything that's not between the ascii space and tilde must be hex
buf.WriteByte('\\')
buf.WriteString(hex.EncodeToString([]byte{char}))
continue
Expand Down

0 comments on commit 4e72a79

Please sign in to comment.