Skip to content

Commit

Permalink
Merge pull request #411 from serac/CAS-1429-ldap-filter-encoding
Browse files Browse the repository at this point in the history
CAS-1429 Escape inputs into LDAP filter expressions.
  • Loading branch information
leleuj committed Jan 12, 2015
2 parents c79fdfa + 1dad29c commit 7de61b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static String getFilterWithValues(final String filter,
}

for (final String key : properties.keySet()) {
final String value = LdapEncoder.nameEncode(properties.get(key));
final String value = LdapEncoder.filterEncode(properties.get(key));
newFilter = newFilter.replaceAll(key, Matcher.quoteReplacement(value));
}

Expand Down

0 comments on commit 7de61b4

Please sign in to comment.