diff --git a/ChangeLog b/ChangeLog index 6cc41b2dc..988146db7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-21 Jean-Sébastien Pédron + + * src/acl.erl (match_acl/3): Use string() version of + User/Server/Resource to match an ACL. + 2009-01-19 Pablo Polvorin * src/cyrsasl_digest.erl: Typo (prolists -> proplists). diff --git a/src/acl.erl b/src/acl.erl index b72402c4d..aa672b4bf 100644 --- a/src/acl.erl +++ b/src/acl.erl @@ -158,7 +158,9 @@ match_acl(ACL, JID, Host) -> all -> true; none -> false; _ -> - {User, Server, Resource} = jlib:short_prepd_jid(JID), + User = exmpp_jid:lnode_as_list(JID), + Server = exmpp_jid:ldomain_as_list(JID), + Resource = exmpp_jid:lresource_as_list(JID), lists:any(fun(#acl{aclspec = Spec}) -> case Spec of all ->