25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Use the new short_prepd_jid/1 function from jlib.

SVN Revision: 1544
This commit is contained in:
Jean-Sébastien Pédron 2008-08-26 12:58:13 +00:00
parent ab75683bc9
commit 5aead42964
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@
STRINGPREP'd parts, use the new short_prepd_jid/1 and STRINGPREP'd parts, use the new short_prepd_jid/1 and
short_prepd_bare_jid/1 functions. short_prepd_bare_jid/1 functions.
* src/acl.erl: Use the new short_prepd_jid/1 function from jlib.
2008-08-14 Jean-Sébastien Pédron <js.pedron@meetic-corp.com> 2008-08-14 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* translate.erl (ascii_tolower): Accept 'undefined' as a language and * translate.erl (ascii_tolower): Accept 'undefined' as a language and

View File

@ -158,7 +158,7 @@ match_acl(ACL, JID, Host) ->
all -> true; all -> true;
none -> false; none -> false;
_ -> _ ->
{User, Server, Resource} = jlib:short_jid(JID), {User, Server, Resource} = jlib:short_prepd_jid(JID),
lists:any(fun(#acl{aclspec = Spec}) -> lists:any(fun(#acl{aclspec = Spec}) ->
case Spec of case Spec of
all -> all ->