]> source.dussan.org Git - redmine.git/commitdiff
Use #html_safe first.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 25 Jan 2017 16:04:51 +0000 (16:04 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 25 Jan 2017 16:04:51 +0000 (16:04 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16256 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 29f4691211536a7e6c9cecea2c6a41627795ca50..a9e1ab1c069d767e580d9eaa26280bb5c55e117b 100644 (file)
@@ -256,7 +256,7 @@ module IssuesHelper
     values = issue.visible_custom_field_values.select {|value| value.custom_field.full_width_layout?}
     return if values.empty?
 
-    s = ''
+    s = ''.html_safe
     values.each_with_index do |value, i|
       if value.custom_field.text_formatting == 'full'
         attr_value = content_tag('div', show_value(value), class: 'wiki')
@@ -269,7 +269,7 @@ module IssuesHelper
           content_tag('div', attr_value, class: 'value')
       s << content_tag('div', content, class: "cf_#{value.custom_field.id} attribute")
     end
-    s.html_safe
+    s
   end
 
   # Returns the path for updating the issue form