Skip to content

Commit 3ad6fbc

Browse files
authored
Fix reference (#786)
The LDAP reference we used was RFC 4515, not RFC 4513
1 parent b4bd821 commit 3ad6fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/owasp/esapi/reference/DefaultEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public String encodeForLDAP(String input, boolean encodeWildcards) {
309309
// TODO: replace with LDAP codec
310310
StringBuilder sb = new StringBuilder();
311311
// According to Microsoft docs [1,2], the forward slash ('/') MUST be escaped.
312-
// According to RFC 4513 Section 3 [3], the forward slash (and other characters) MAY be escaped.
312+
// According to RFC 4515 Section 3 [3], the forward slash (and other characters) MAY be escaped.
313313
// Since Microsoft is a MUST, escape forward slash for all implementations. Also see discussion at [4].
314314
// [1] https://docs.microsoft.com/en-us/windows/win32/adsi/search-filter-syntax
315315
// [2] https://social.technet.microsoft.com/wiki/contents/articles/5312.active-directory-characters-to-escape.aspx

0 commit comments

Comments
 (0)