Since:
2.1.0
67 68 69 70 71 72 73
# File 'lib/redmine/utils.rb', line 67 def shell_quote(str) if Redmine::Platform.mswin? '"' + str.gsub(/"/, '\\"') + '"' else "'" + str.gsub(/'/, "'\"'\"'") + "'" end end