Commit 921151d0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

strip tags from user profile

parent 4bbe2b74
...@@ -75,7 +75,7 @@ class ProfilesController < ApplicationController ...@@ -75,7 +75,7 @@ class ProfilesController < ApplicationController
# validation for this fields # validation for this fields
%w(name skype linkedin twitter bio).each do |attr| %w(name skype linkedin twitter bio).each do |attr|
value = user_attributes[attr] value = user_attributes[attr]
user_attributes[attr] = sanitize(value) if value.present? user_attributes[attr] = sanitize(strip_tags(value)) if value.present?
end end
user_attributes user_attributes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment