summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authoruran <uran@zeoalliance.com>2014-08-26 10:11:11 +0300
committeruran <uran@zeoalliance.com>2014-08-27 18:04:18 +0300
commite9015dfbc9ed38f74fa6f035eb927176e0988510 (patch)
tree30dd9162c076dd97813f06204db12513983cea5c /app/helpers
parent23d4fcbd2c43c1b9d4323a4e25a46643aba2a06a (diff)
downloadgitlab-ce-e9015dfbc9ed38f74fa6f035eb927176e0988510.tar.gz
Mask password in import URL while importing.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/projects_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 8350f5dc072..4653b8a2278 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -261,4 +261,10 @@ module ProjectsHelper
project_blob_path(project, tree_join(project.default_branch, project.repository.contribution_guide.name))
end
end
+
+ def hidden_pass_url(original_url)
+ result = URI(original_url)
+ result.password = '*****' if result.password.present?
+ result
+ end
end