[Git][noosfero/noosfero][master] should not escape custom fields
Leandro Nunes
gitlab at mg.gitlab.com
Fri May 27 13:45:12 BRT 2016
Leandro Nunes pushed to branch master at Noosfero / noosfero
Commits:
e567f780 by Leandro Nunes dos Santos at 2016-05-27T13:44:54-03:00
should not escape custom fields
- - - - -
1 changed file:
- app/helpers/custom_fields_helper.rb
Changes:
=====================================
app/helpers/custom_fields_helper.rb
=====================================
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -61,6 +61,6 @@ module CustomFieldsHelper
def form_for_format(customized_type, format)
field = CustomField.new(:format => format, :customized_type => customized_type, :environment => environment)
- CGI::escapeHTML((render(:partial => 'features/custom_fields/form', :locals => {:field => field})))
+ CGI::escapeHTML((render(:partial => 'features/custom_fields/form', :locals => {:field => field}))).html_safe
end
end
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/e567f78037de969ad765b9758a7baf2b07d177a2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160527/5e81ed3d/attachment.html>
More information about the Noosfero-dev
mailing list