We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c954c9 commit 6e62f30Copy full SHA for 6e62f30
crates/directory/src/backend/ldap/mod.rs
@@ -58,9 +58,12 @@ impl LdapFilter {
58
LdapFilterItem::Static(s) => result.push_str(s),
59
LdapFilterItem::Full => result.push_str(ldap_escape(value).as_ref()),
60
LdapFilterItem::LocalPart => {
61
- if let Some((value, _)) = value.rsplit_once('@') {
62
- result.push_str(value);
63
- }
+ result.push_str(
+ value
+ .rsplit_once('@')
64
+ .map(|(local, _)| local)
65
+ .unwrap_or(value),
66
+ );
67
}
68
LdapFilterItem::DomainPart => {
69
if let Some((_, domain)) = value.rsplit_once('@') {
0 commit comments