Commit 1b077483267b952bf73808614be1315920f44ad2
1 parent
18fbfcaf
Exists in
staging
and in
7 other branches
Add xss_terminate to person model
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/models/person.rb
... | ... | @@ -201,6 +201,8 @@ roles] } |
201 | 201 | contact_informatioin |
202 | 202 | ] |
203 | 203 | |
204 | + 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' | |
205 | + | |
204 | 206 | validates_multiparameter_assignments |
205 | 207 | |
206 | 208 | def self.fields | ... | ... |