strip tags from user profile

This commit is contained in:
Dmitriy Zaporozhets 2013-04-03 16:31:28 +03:00
parent 4bbe2b74a8
commit 921151d041

View file

@ -75,7 +75,7 @@ class ProfilesController < ApplicationController
# validation for this fields
%w(name skype linkedin twitter bio).each do |attr|
value = user_attributes[attr]
user_attributes[attr] = sanitize(value) if value.present?
user_attributes[attr] = sanitize(strip_tags(value)) if value.present?
end
user_attributes