Skip to content
Browse files

WHISTLE-945: html escape binary strings prior to the template

  • Loading branch information...
1 parent 9fa8df8 commit 2457ea14427273e78418c4feaa6501c0da42bcfd @k-anderson k-anderson committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 whistle_apps/apps/notify/src/notify_util.erl
View
2 whistle_apps/apps/notify/src/notify_util.erl
@@ -67,6 +67,8 @@ normalize_proplist(Props) ->
normalize_proplist_element({K, V}) when is_list(V) ->
{normalize_value(K), normalize_proplist(V)};
+normalize_proplist_element({K, V}) when is_binary(V) ->
+ {normalize_value(K), mochiweb_html:escape(V)};
normalize_proplist_element({K, V}) ->
{normalize_value(K), V};
normalize_proplist_element(Else) ->

0 comments on commit 2457ea1

Please sign in to comment.
Something went wrong with that request. Please try again.