Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-08-30 10:02:08 +0300
committerTim Zallmann <tzallmann@gitlab.com>2017-08-30 10:17:28 +0300
commit285fadcb3476c8a84a3fdc68788260987eeaa50e (patch)
treee204d1c20c14aecf655172fe9996efc059d1e2a8
parente775748671f1cec7c89e8428cf934eb386a5a1ed (diff)
Fixes Username Value Exposing
-rw-r--r--app/helpers/commits_helper.rb2
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]