summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-07 23:53:20 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-07 23:53:20 +0000
commit6d805cfca22fb1d7e220a2bf646c18963eaf20cc (patch)
treedf269c88ff5f6b676743a95a97b712a666404661
parent12077a4d44718ede358187c800c5eff06eae13ac (diff)
downloadredmine-6d805cfca22fb1d7e220a2bf646c18963eaf20cc.tar.gz
redmine-6d805cfca22fb1d7e220a2bf646c18963eaf20cc.zip
Rails3: helper: html_safe for render_flash_messages method at ApplicationHelper
Contributed by Sylvain Utard. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8121 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 42862175c..396319e74 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -214,7 +214,7 @@ module ApplicationHelper
def render_flash_messages
s = ''
flash.each do |k,v|
- s << content_tag('div', v, :class => "flash #{k}")
+ s << (content_tag('div', v.html_safe, :class => "flash #{k}"))
end
s.html_safe
end