Fix encoding of special characters in org (#3779) (#3817)

This commit is contained in:
John Curcio 2019-08-24 16:08:31 -03:00 committed by Ben Halpern
parent 3443fdf2bd
commit c81ff56d13

View file

@ -70,7 +70,7 @@ class OrganizationsController < ApplicationController
params.require(:organization).permit(permitted_params).
transform_values do |value|
if value.class.name == "String"
ActionController::Base.helpers.strip_tags(value)
Loofah.scrub_fragment(value, :prune).text(encode_special_chars: false)
else
value
end