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:
Jean-Philippe Lang 2008-08-25 12:27:15 +00:00
parent 6fc62d393c
commit 0d55652552
1 changed files with 2 additions and 2 deletions

View File

@ -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