diff options
author | Nathan Neulinger <nneul@neulinger.org> | 2017-04-10 08:02:31 -0500 |
---|---|---|
committer | Nathan Neulinger <nneul@neulinger.org> | 2017-07-12 07:48:48 -0500 |
commit | 4f47de62b47e136ffe335dc93acff3f6cd69b98f (patch) | |
tree | 502f26a0d6e44abd99a1e621b4880267b0ab82a6 /app/models/user.rb | |
parent | 571c4f5a4f1b9f6a21f3f3af462fac4c1ea5f42a (diff) | |
download | gitlab-ce-4f47de62b47e136ffe335dc93acff3f6cd69b98f.tar.gz |
Stop sanitizing user 'name' when inserting into db
Add spec tests for encoding
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 4b01c2f19f0..2d39b1c1c34 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -699,7 +699,7 @@ class User < ActiveRecord::Base end def sanitize_attrs - %w[name username skype linkedin twitter].each do |attr| + %w[username skype linkedin twitter].each do |attr| value = public_send(attr) public_send("#{attr}=", Sanitize.clean(value)) if value.present? end |