summaryrefslogtreecommitdiffstats
path: root/config/initializers/10-patches.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-25 16:50:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-25 16:50:25 +0000
commit472d3a00a314083e8fb085d414aac4e62d24eaff (patch)
tree6d2eca19b233852a34d6569977d39998c494c4dc /config/initializers/10-patches.rb
parent235238b5834da03dc11d511d7e57c79510a9d5da (diff)
downloadredmine-472d3a00a314083e8fb085d414aac4e62d24eaff.tar.gz
redmine-472d3a00a314083e8fb085d414aac4e62d24eaff.zip
Fixed that some input fields are escaped on validation failures (#11027).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9711 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers/10-patches.rb')
-rw-r--r--config/initializers/10-patches.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index 4abb1a357..dc847de50 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -43,7 +43,7 @@ module ActionView
end
end
-ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
+ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| html_tag || ''.html_safe }
require 'mail'