mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
parent
b3d9c0d1f7
commit
bb397bb424
@ -409,9 +409,10 @@ get_member_jid(#state{user_jid_attr = UserJIDAttr, user_uid = UIDAttr} = State,
|
||||
[] ->
|
||||
{error, error};
|
||||
[#eldap_entry{attributes = [{UserJIDAttr, [MemberJID | _]}]} | _] ->
|
||||
case jid:decode(MemberJID) of
|
||||
error -> {error, Host};
|
||||
try jid:decode(MemberJID) of
|
||||
#jid{luser = U, lserver = S} -> {U, S}
|
||||
catch
|
||||
error:{bad_jid, _} -> {error, Host}
|
||||
end
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user