strip tags from user profile
This commit is contained in:
parent
4bbe2b74a8
commit
921151d041
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue