From ccd94bb734c712af0f001ea50f46326509fa4d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Fri, 10 Oct 2008 08:16:29 +0000 Subject: [PATCH] Fix a buf where a tuple was passed to exmpp_jid:jid_to_list/1 instead of a #jid. Now we use exmpp_jid:jid_to_list/3. PR: EJABP-1 Submitted by: Pablo Polvorin SVN Revision: 1617 --- ChangeLog | 4 ++++ src/mod_privacy_odbc.erl | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3c3009b8c..f9e13ee73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,10 @@ legacy authentication informations were not search among the query children but among the IQ children. Thanks to Pablo Polvorin! + * src/mod_privacy_odbc.erl (item_to_raw/1): Fix a buf where a tuple + was passed to exmpp_jid:jid_to_list/1 instead of a #jid. Now we use + exmpp_jid:jid_to_list/3. Thanks to Pablo Polvorin! + 2008-10-09 Jean-Sébastien Pédron * src/ejabberd_c2s.erl: Fix handling of unauthenticated stanzas which diff --git a/src/mod_privacy_odbc.erl b/src/mod_privacy_odbc.erl index 00269d0e9..57af4fc30 100644 --- a/src/mod_privacy_odbc.erl +++ b/src/mod_privacy_odbc.erl @@ -727,7 +727,8 @@ item_to_raw(#listitem{type = Type, none -> {"n", ""}; jid -> - {"j", exmpp_jid:jid_to_list(Value)}; + {N0, D0, R0} = Value, + {"j", exmpp_jid:jid_to_list(N0, D0, R0)}; group -> {"g", Value}; subscription ->