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