Fixes method name in AbstractAdapter.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1756 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6fc62d393c
commit
0d55652552
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue