diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-30 10:02:08 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-30 10:17:28 +0300 |
commit | 285fadcb3476c8a84a3fdc68788260987eeaa50e (patch) | |
tree | e204d1c20c14aecf655172fe9996efc059d1e2a8 | |
parent | e775748671f1cec7c89e8428cf934eb386a5a1ed (diff) |
Fixes Username Value Exposing
-rw-r--r-- | app/helpers/commits_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb index cdc8c1664f1..579dc20b5e8 100644 --- a/app/helpers/commits_helper.rb +++ b/app/helpers/commits_helper.rb @@ -133,7 +133,7 @@ module CommitsHelper source_name = clean(commit.send "#{options[:source]}_name".to_sym) source_email = clean(commit.send "#{options[:source]}_email".to_sym) - person_name = user.try(:name) || source_name + person_name = simple_sanitize(user.try(:name) || source_name) text = if options[:avatar] |