Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2017-12-22 12:05:53 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2017-12-22 12:05:53 +0300
commit954980b013fed5bfe3a3144b525c80cc07796709 (patch)
treebe816abb731c90198d23888034d7593ed7d22fed
parentda5c4ae2bdc2994cc7e50cfbd5300bd86d5ca3d2 (diff)
parent486ea11fbdaf3c7fc61d5b05093b03fe9211ab28 (diff)
Merge branch 'feature/fix_windows_cmd_escape'
-rw-r--r--Duplicati/Library/Utility/Utility.cs4
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