aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-04-25 09:34:38 +0100
committerLouise Crow <louise.crow@gmail.com>2013-04-25 09:51:50 +0100
commit5f307eee680e95cbd841dd064aacdb2ef61ca173 (patch)
tree1e8846c1446c3a7bd4657cd14f5c2e1e67068b29
parent01c18c609fe3e3eb9d50416f2f67375431975ee7 (diff)
Mark ban text as html safe
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 612ac7fa2..6b66e1a8d 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -306,7 +306,7 @@ class User < ActiveRecord::Base
text = CGI.escapeHTML(text)
text = MySociety::Format.make_clickable(text, :contract => 1)
text = text.gsub(/\n/, '<br>')
- return text
+ return text.html_safe
end
# Returns domain part of user's email address