Skip to content
Browse files

Fix for Rails 3.0.9 following SafeBuffer security fix

  • Loading branch information...
1 parent 5506037 commit cd3d81e86379583f0b3d2ca96fa0a585a69a7dcb @ZenCocoon committed Jun 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/helpers/tolk/application_helper.rb
View
4 app/helpers/tolk/application_helper.rb
@@ -1,7 +1,7 @@
module Tolk
module ApplicationHelper
def format_i18n_value(value)
- h(yaml_value(value)).gsub(/\n/, '<br />')
+ h(yaml_value(value)).gsub(/\n/, '<br />').html_safe
end
def format_i18n_text_area_value(value)
@@ -14,7 +14,7 @@ def yaml_value(value)
value = value.respond_to?(:ya2yaml) ? value.ya2yaml(:syck_compatible => true) : value.to_yaml
end
end
-
+
value
end

0 comments on commit cd3d81e

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