Commit 0d556525 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes method name in AbstractAdapter.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1756 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6fc62d39
......@@ -185,13 +185,13 @@ module Redmine
end
# Hides username/password in a given command
def self.hide_credential(cmd)
def self.strip_credential(cmd)
q = (Redmine::Platform.mswin? ? '"' : "'")
cmd.to_s.gsub(/(\-\-(password|username))\s+(#{q}[^#{q}]+#{q}|[^#{q}]\S+)/, '\\1 xxxx')
end
def strip_credential(cmd)
self.class.hide_credential(cmd)
self.class.strip_credential(cmd)
end
end
......
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