From 1b077483267b952bf73808614be1315920f44ad2 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 13 Apr 2015 15:34:50 -0300 Subject: [PATCH] Add xss_terminate to person model --- app/models/person.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/app/models/person.rb b/app/models/person.rb index 5100119..ae910d0 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -201,6 +201,8 @@ roles] } contact_informatioin ] + xss_terminate :only => [ :custom_footer, :custom_header, :description, :preferred_domain, :nickname, :sex, :nationality, :country, :state, :city, :district, :zip_code, :address, :address_reference, :cell_phone, :comercial_phone, :personal_website, :jabber_id, :schooling, :formation, :custom_formation, :area_of_study, :custom_area_of_study, :professional_activity, :organization, :organization_website, :contact_phone, :contact_information ], :with => 'white_list' + validates_multiparameter_assignments def self.fields -- libgit2 0.21.2