Skip to content

Commit

Permalink
Fix for Rails 3.0.9 following SafeBuffer security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenCocoon committed Jun 15, 2011
1 parent 5506037 commit cd3d81e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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)
Expand All @@ -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

Expand Down

0 comments on commit cd3d81e

Please sign in to comment.