From 5aead429644bb0a6e2c5b7bd21ee7c2521a6fc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Tue, 26 Aug 2008 12:58:13 +0000 Subject: [PATCH] Use the new short_prepd_jid/1 function from jlib. SVN Revision: 1544 --- ChangeLog | 2 ++ src/acl.erl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a17316813..fc115fe9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ STRINGPREP'd parts, use the new short_prepd_jid/1 and 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 * translate.erl (ascii_tolower): Accept 'undefined' as a language and diff --git a/src/acl.erl b/src/acl.erl index e65c34c4a..21bacf618 100644 --- a/src/acl.erl +++ b/src/acl.erl @@ -158,7 +158,7 @@ match_acl(ACL, JID, Host) -> all -> true; none -> false; _ -> - {User, Server, Resource} = jlib:short_jid(JID), + {User, Server, Resource} = jlib:short_prepd_jid(JID), lists:any(fun(#acl{aclspec = Spec}) -> case Spec of all ->