diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2017-12-22 12:05:53 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2017-12-22 12:05:53 +0300 |
commit | 954980b013fed5bfe3a3144b525c80cc07796709 (patch) | |
tree | be816abb731c90198d23888034d7593ed7d22fed | |
parent | da5c4ae2bdc2994cc7e50cfbd5300bd86d5ca3d2 (diff) | |
parent | 486ea11fbdaf3c7fc61d5b05093b03fe9211ab28 (diff) |
Merge branch 'feature/fix_windows_cmd_escape'
-rw-r--r-- | Duplicati/Library/Utility/Utility.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Duplicati/Library/Utility/Utility.cs b/Duplicati/Library/Utility/Utility.cs index 9f0036eaa..a4609f2bc 100644 --- a/Duplicati/Library/Utility/Utility.cs +++ b/Duplicati/Library/Utility/Utility.cs @@ -1553,6 +1553,10 @@ namespace Duplicati.Library.Utility // making it even rarer and harder to diagnose when
// it happens
arg = arg.Replace("\"", "\"\"");
+
+ // Also fix the case where the argument ends with a slash
+ if (arg[arg.Length - 1] == '\\')
+ arg += "\\";
}
// Check that all characters are in the safe set
|