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:
parent
9b145385af
commit
3952888f94
@ -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 ->
|
||||||
|
Loading…
Reference in New Issue
Block a user