diff options
Diffstat (limited to 'lib/redmine/utils/shell.rb')
-rw-r--r-- | lib/redmine/utils/shell.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/utils/shell.rb b/lib/redmine/utils/shell.rb index 1de5283d1..f3b769f57 100644 --- a/lib/redmine/utils/shell.rb +++ b/lib/redmine/utils/shell.rb @@ -24,9 +24,9 @@ module Redmine def shell_quote(str) if Redmine::Platform.mswin? - '"' + str.gsub(/"/, '\\"') + '"' + '"' + str.gsub('"', '\\"') + '"' else - "'" + str.gsub(/'/, "'\"'\"'") + "'" + "'" + str.gsub("'", "'\"'\"'") + "'" end end |