Skip to content
Snippets Groups Projects
Commit 921151d0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

strip tags from user profile

parent 4bbe2b74
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment