mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
py3: make_filter_from_attr: use string instead of bytes
Method escape_filter_chars() requires string as parameter instead of bytes. 'value_to_utf8' returns bytes thus this code has to be removed. https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
4b148c8ca3
commit
746d4ffc58
@ -1252,8 +1252,9 @@ class LDAPClient(object):
|
||||
value = u'\\'.join(
|
||||
value[i:i+2] for i in six.moves.range(-2, len(value), 2))
|
||||
else:
|
||||
value = value_to_utf8(value)
|
||||
value = six.text_type(value)
|
||||
value = ldap.filter.escape_filter_chars(value)
|
||||
|
||||
if not exact:
|
||||
template = '%s'
|
||||
if leading_wildcard:
|
||||
|
Loading…
Reference in New Issue
Block a user