mirror of
https://github.com/redmine/redmine.git
synced 2026-02-06 23:00:15 +01:00
scm: switch to use shell quote with parameter in abstract adapter target().
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5906 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -184,10 +184,14 @@ module Redmine
|
||||
info ? info.root_url : nil
|
||||
end
|
||||
|
||||
def target(path)
|
||||
def target(path, sq=true)
|
||||
path ||= ''
|
||||
base = path.match(/^\//) ? root_url : url
|
||||
shell_quote("#{base}/#{path}".gsub(/[?<>\*]/, ''))
|
||||
str = "#{base}/#{path}".gsub(/[?<>\*]/, '')
|
||||
if sq
|
||||
str = shell_quote(str)
|
||||
end
|
||||
str
|
||||
end
|
||||
|
||||
def logger
|
||||
|
||||
Reference in New Issue
Block a user