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,7 +75,7 @@ class ProfilesController < ApplicationController | ||
| 75 | # validation for this fields | 75 | # validation for this fields |
| 76 | %w(name skype linkedin twitter bio).each do |attr| | 76 | %w(name skype linkedin twitter bio).each do |attr| |
| 77 | value = user_attributes[attr] | 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 | end | 79 | end |
| 80 | 80 | ||
| 81 | user_attributes | 81 | user_attributes |