From c0c29e579d3a30708c689c02059bd9c1856b688e Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Wed, 28 Mar 2018 20:49:47 -0700 Subject: [PATCH] Make string comparison use ordinal (binary) sort rules. This string comparison should not be culture-aware. --- Duplicati/Library/Backend/OneDrive/SharePointV2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Backend/OneDrive/SharePointV2.cs b/Duplicati/Library/Backend/OneDrive/SharePointV2.cs index 712728d63..f415715b2 100644 --- a/Duplicati/Library/Backend/OneDrive/SharePointV2.cs +++ b/Duplicati/Library/Backend/OneDrive/SharePointV2.cs @@ -129,7 +129,7 @@ namespace Duplicati.Library.Backend string requestBase = string.Format("{0}/sites/{1}", this.ApiVersion, uri.Host); // Just like the original SharePoint backend, use the "//" as a hint at where the site might be - int siteHint = uri.Path.IndexOf("//"); + int siteHint = uri.Path.IndexOf("//", StringComparison.Ordinal); if (siteHint >= 0) { try