diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2018-12-12 08:07:30 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2018-12-12 08:21:07 +0300 |
commit | 8dd3aeaf268833340e82339095432b5de0d07a5f (patch) | |
tree | 7c5ba9573a98f4e281f927e4554c44deb8ea78ef /Duplicati/CommandLine | |
parent | 49e54ab0b792e57d85ae082bee8323b939d146ec (diff) |
Use invariant culture in calls to ToLower and ToUpper.
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r-- | Duplicati/CommandLine/BackendTester/Program.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Duplicati/CommandLine/BackendTester/Program.cs b/Duplicati/CommandLine/BackendTester/Program.cs index bb879fc6a..afdf09dc2 100644 --- a/Duplicati/CommandLine/BackendTester/Program.cs +++ b/Duplicati/CommandLine/BackendTester/Program.cs @@ -22,6 +22,7 @@ using System.Collections.Generic; using System.Text;
using Duplicati.Library.Interface;
using System.Linq;
+using System.Globalization;
namespace Duplicati.CommandLine.BackendTester
{
@@ -158,8 +159,8 @@ namespace Duplicati.CommandLine.BackendTester string enabledModulesValue;
options.TryGetValue("enable-module", out enabledModulesValue);
options.TryGetValue("disable-module", out disabledModulesValue);
- string[] enabledModules = enabledModulesValue == null ? new string[0] : enabledModulesValue.Trim().ToLower().Split(',');
- string[] disabledModules = disabledModulesValue == null ? new string[0] : disabledModulesValue.Trim().ToLower().Split(',');
+ string[] enabledModules = enabledModulesValue == null ? new string[0] : enabledModulesValue.Trim().ToLower(CultureInfo.InvariantCulture).Split(',');
+ string[] disabledModules = disabledModulesValue == null ? new string[0] : disabledModulesValue.Trim().ToLower(CultureInfo.InvariantCulture).Split(',');
List<Library.Interface.IGenericModule> loadedModules = new List<IGenericModule>();
foreach (Library.Interface.IGenericModule m in Library.DynamicLoader.GenericLoader.Modules)
|