mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
Made caseExactMatch() use Unicode normalization
This commit is contained in:
parent
6c362d77ac
commit
0e614ca0ec
1 changed files with 6 additions and 0 deletions
|
|
@ -960,6 +960,11 @@ caseExactMatch(
|
|||
struct berval *value,
|
||||
void *assertedValue )
|
||||
{
|
||||
#if UTF8MATCH
|
||||
*matchp = UTF8normcmp( value->bv_val,
|
||||
((struct berval *) assertedValue)->bv_val,
|
||||
UTF8_NOCASEFOLD );
|
||||
#else
|
||||
int match = value->bv_len - ((struct berval *) assertedValue)->bv_len;
|
||||
|
||||
if( match == 0 ) {
|
||||
|
|
@ -969,6 +974,7 @@ caseExactMatch(
|
|||
}
|
||||
|
||||
*matchp = match;
|
||||
#endif
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue