Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fixes #16024 - escape labels of form fields
  • Loading branch information
ares authored and dLobatog committed Aug 10, 2016
1 parent e2a57bf commit 0f35fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/form_helper.rb
Expand Up @@ -283,7 +283,7 @@ def add_label options, f, attr
label = options[:label] == :none ? '' : options.delete(:label)
label ||= ((clazz = f.object.class).respond_to?(:gettext_translation_for_attribute_name) &&
s_(clazz.gettext_translation_for_attribute_name attr)) if f
label = label.present? ? label_tag(attr, "#{label}#{required_mark}".html_safe, :class => label_size + " control-label") : ''
label = label.present? ? label_tag(attr, "#{label}#{required_mark}", :class => label_size + " control-label") : ''
label
end

Expand Down

0 comments on commit 0f35fe1

Please sign in to comment.