Defect #1804 ยป abstract_adapter.patch
C:\Redmine\lib\redmine\scm\adapters\abstract_adapter.rb | ||
---|---|---|
138 | 138 |
end |
139 | 139 |
|
140 | 140 |
def shell_quote(str) |
141 |
if RUBY_PLATFORM =~ /mswin/
|
|
141 |
if RUBY_PLATFORM =~ /(:?mswin|mingw)/ || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
|
|
142 | 142 |
'"' + str.gsub(/"/, '\\"') + '"' |
143 | 143 |
else |
144 | 144 |
"'" + str.gsub(/'/, "'\"'\"'") + "'" |