twisted / ldaptor

LDAP server, client and utilities, using Twisted Python
MIT License
160 stars 53 forks source link

Fix TypeErrors in MatchMixin #244

Open jemrobinson opened 8 months ago

jemrobinson commented 8 months ago

Contributor Checklist:

Summary

When MatchMixin makes calls to str.startswith, str.endswith and str.find, the argument is currently a bytes not a str. This causes a crash, which can most easily be seen when using a wildcard search filter.

decode()ing the bytes to a str fixes this issue.