25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

* src/ejd2odbc.erl: Bugfix (thanks to Badlop)

SVN Revision: 769
This commit is contained in:
Alexey Shchepin 2007-05-15 00:07:25 +00:00
parent b444faaf89
commit 897cc13f42

View File

@ -315,8 +315,14 @@ record_to_string(#roster{usj = {User, _Server, JID},
in -> "I";
none -> "N"
end,
SAskMessage = ejabberd_odbc:escape(
binary_to_list(list_to_binary([AskMessage]))),
SAskMessage =
case catch ejabberd_odbc:escape(
binary_to_list(list_to_binary([AskMessage]))) of
{'EXIT', _Reason} ->
[];
SAM ->
SAM
end,
["("
"'", Username, "',"
"'", SJID, "',"