Commit b25239e4 authored by Valery Sizov's avatar Valery Sizov

masking access_token from url for logging

parent 87feb100
......@@ -109,6 +109,7 @@ class GitlabProjects
def mask_password_in_url(url)
result = URI(url)
result.password = "*****" unless result.password.nil?
result.user = "*****" unless result.user.nil? #it's needed for oauth access_token
result
rescue
url
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment