From a365f8cd2b0b8d76c0dc2f9c6eac038ef0ea0582 Mon Sep 17 00:00:00 2001 From: Alexey Shchepin Date: Tue, 30 Jan 2007 15:23:48 +0000 Subject: [PATCH] * src/mod_roster_odbc.erl: Bugfix (thanks to asdx ) * src/ejd2odbc.erl: Likewise SVN Revision: 717 --- ChangeLog | 6 ++++++ src/ejd2odbc.erl | 3 ++- src/mod_roster_odbc.erl | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ca2cfa6df..027909f2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-30 Alexey Shchepin + + * src/mod_roster_odbc.erl: Bugfix (thanks to asdx + ) + * src/ejd2odbc.erl: Likewise + 2007-01-27 Mickael Remond * src/mod_vcard_ldap.erl: LDAP server pool support (thanks to Evgeniy diff --git a/src/ejd2odbc.erl b/src/ejd2odbc.erl index 1513a1abc..f85879808 100644 --- a/src/ejd2odbc.erl +++ b/src/ejd2odbc.erl @@ -315,13 +315,14 @@ record_to_string(#roster{usj = {User, _Server, JID}, in -> "I"; none -> "N" end, + SAskMessage = ejabberd_odbc:escape(AskMessage), ["(" "'", Username, "'," "'", SJID, "'," "'", Nick, "'," "'", SSubscription, "'," "'", SAsk, "'," - "'", AskMessage, "'," + "'", SAskMessage, "'," "'N', '', 'item')"]. groups_to_string(#roster{usj = {User, _Server, JID}, diff --git a/src/mod_roster_odbc.erl b/src/mod_roster_odbc.erl index d36dfecda..876b699f6 100644 --- a/src/mod_roster_odbc.erl +++ b/src/mod_roster_odbc.erl @@ -825,12 +825,13 @@ record_to_string(#roster{us = {User, _Server}, in -> "I"; none -> "N" end, + SAskMessage = ejabberd_odbc:escape(AskMessage), ["'", Username, "'," "'", SJID, "'," "'", Nick, "'," "'", SSubscription, "'," "'", SAsk, "'," - "'", AskMessage, "'," + "'", SAskMessage, "'," "'N', '', 'item'"]. groups_to_string(#roster{us = {User, _Server},