Project

General

Profile

Defect #1804 ยป abstract_adapter.patch

Babar O'Cap, 2008-08-21 15:28

View differences:

C:\Redmine\lib\redmine\scm\adapters\abstract_adapter.rb
end
def shell_quote(str)
if RUBY_PLATFORM =~ /mswin/
if RUBY_PLATFORM =~ /(:?mswin|mingw)/ || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
'"' + str.gsub(/"/, '\\"') + '"'
else
"'" + str.gsub(/'/, "'\"'\"'") + "'"
    (1-1/1)