25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Escape user input in mod_privacy_odbc (EJAB-1442)

This commit is contained in:
Badlop 2011-04-26 20:35:25 +02:00
parent 9b145385af
commit 3952888f94

View File

@ -751,9 +751,9 @@ item_to_raw(#listitem{type = Type,
none -> none ->
{"n", ""}; {"n", ""};
jid -> jid ->
{"j", jlib:jid_to_string(Value)}; {"j", ejabberd_odbc:escape(jlib:jid_to_string(Value))};
group -> group ->
{"g", Value}; {"g", ejabberd_odbc:escape(Value)};
subscription -> subscription ->
case Value of case Value of
none -> none ->