From: Alexey Shchepin Date: Sun, 13 May 2007 22:41:19 +0000 (+0000) Subject: * src/ejd2odbc.erl: Bugfix (thanks to Badlop) X-Git-Tag: v2.0.0~381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b444faaf899922f99ed4f8e383f169a8f5b50a35;p=ejabberd * src/ejd2odbc.erl: Bugfix (thanks to Badlop) SVN Revision: 768 --- diff --git a/ChangeLog b/ChangeLog index a21b8dc8c..0811e0b92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-05-14 Alexey Shchepin + + * src/ejd2odbc.erl: Bugfix (thanks to Badlop) + 2007-05-12 Alexey Shchepin * src/ejabberd_auth.erl: Added get_vh_registered_users_number/1 diff --git a/src/ejd2odbc.erl b/src/ejd2odbc.erl index f85879808..dba394f9e 100644 --- a/src/ejd2odbc.erl +++ b/src/ejd2odbc.erl @@ -315,7 +315,8 @@ record_to_string(#roster{usj = {User, _Server, JID}, in -> "I"; none -> "N" end, - SAskMessage = ejabberd_odbc:escape(AskMessage), + SAskMessage = ejabberd_odbc:escape( + binary_to_list(list_to_binary([AskMessage]))), ["(" "'", Username, "'," "'", SJID, "',"