Commit 921151d0414512df79f0724e0a52af6ab96108d1
1 parent
4bbe2b74
Exists in
master
and in
4 other branches
strip tags from user profile
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/profiles_controller.rb
... | ... | @@ -75,7 +75,7 @@ class ProfilesController < ApplicationController |
75 | 75 | # validation for this fields |
76 | 76 | %w(name skype linkedin twitter bio).each do |attr| |
77 | 77 | value = user_attributes[attr] |
78 | - user_attributes[attr] = sanitize(value) if value.present? | |
78 | + user_attributes[attr] = sanitize(strip_tags(value)) if value.present? | |
79 | 79 | end |
80 | 80 | |
81 | 81 | user_attributes | ... | ... |