* src/mod_roster_odbc.erl: Bugfix

SVN Revision: 420
This commit is contained in:
Alexey Shchepin 2005-10-15 14:41:48 +00:00
parent 9e88ecc1d1
commit f85767fae4
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2005-10-15 Alexey Shchepin <alexey@sevcom.net>
* src/mod_roster_odbc.erl: Bugfix
* src/ejabberd_c2s.erl: Updated to work correctly with
mod_vcard_odbc

View File

@ -841,7 +841,7 @@ record_to_string(#roster{user = User,
subscription = Subscription,
ask = Ask}) ->
Username = ejabberd_odbc:escape(User),
SJID = ejabberd_odbc:escape(jlib:jid_to_string(JID)),
SJID = ejabberd_odbc:escape(jlib:jid_to_string(jlib:jid_tolower(JID))),
Nick = ejabberd_odbc:escape(Name),
SSubscription = case Subscription of
both -> "B";
@ -869,7 +869,7 @@ groups_to_string(#roster{user = User,
jid = JID,
groups = Groups}) ->
Username = ejabberd_odbc:escape(User),
SJID = ejabberd_odbc:escape(jlib:jid_to_string(JID)),
SJID = ejabberd_odbc:escape(jlib:jid_to_string(jlib:jid_tolower(JID))),
[["("
"'", Username, "',"
"'", SJID, "',"