Skip to content

Commit

Permalink
Escape user input in mod_privacy_odbc (EJAB-1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Apr 26, 2011
1 parent 9b14538 commit 3952888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mod_privacy_odbc.erl
Expand Up @@ -751,9 +751,9 @@ item_to_raw(#listitem{type = Type,
none ->
{"n", ""};
jid ->
{"j", jlib:jid_to_string(Value)};
{"j", ejabberd_odbc:escape(jlib:jid_to_string(Value))};
group ->
{"g", Value};
{"g", ejabberd_odbc:escape(Value)};
subscription ->
case Value of
none ->
Expand Down

0 comments on commit 3952888

Please sign in to comment.