Skip to content

Commit

Permalink
apr_ldap: Use locale independent apr_cstr_casecmpn() for comparison.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1920254 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
minfrin committed Aug 28, 2024
1 parent 9292e19 commit df96b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ldap/apr_ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "apr_poll.h"
#include "apr_pools.h"
#include "apr_portable.h"
#include "apr_cstr.h"
#include "apr_strings.h"
#include "apr_escape.h"

Expand Down Expand Up @@ -1574,7 +1575,7 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_result(apr_pool_t *pool,

/* support for RFC4522 binary encoding option */
while ((sc = strchr(sc, ';'))) {
if (!strcasecmp(sc, ";binary") && (sc[7] == 0 || sc[7] == ';')) {
if (!apr_cstr_casecmpn(sc, ";binary", 7) && (sc[7] == 0 || sc[7] == ';')) {
binary = 1;
break;
}
Expand Down

0 comments on commit df96b37

Please sign in to comment.