Commit 4196ee06 authored by James Lopez's avatar James Lopez
Browse files

update safe_import_url to prevent tokens to be showed by the UI

parent 2bdfb0debfb6
......@@ -409,6 +409,7 @@ def import_finished?
def safe_import_url
result = URI.parse(self.import_url)
result.password = '*****' unless result.password.nil?
result.user = '*****' unless result.user.nil? || result.user == "git" #tokens or other data may be saved as user
result.to_s
rescue
self.import_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