Selaa lähdekoodia

change invariant culture to ordinal

dkanada 5 vuotta sitten
vanhempi
sitoutus
9eac19c75a
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Emby.Server.Implementations/IO/ManagedFileSystem.cs

+ 2 - 2
Emby.Server.Implementations/IO/ManagedFileSystem.cs

@@ -81,7 +81,7 @@ namespace Emby.Server.Implementations.IO
         public virtual string MakeAbsolutePath(string folderPath, string filePath)
         public virtual string MakeAbsolutePath(string folderPath, string filePath)
         {
         {
             // path is actually a stream
             // path is actually a stream
-            if (string.IsNullOrWhiteSpace(filePath) || filePath.Contains("://", StringComparison.InvariantCulture))
+            if (string.IsNullOrWhiteSpace(filePath) || filePath.Contains("://", StringComparison.Ordinal))
             {
             {
                 return filePath;
                 return filePath;
             }
             }
@@ -93,7 +93,7 @@ namespace Emby.Server.Implementations.IO
             }
             }
 
 
             // unc path
             // unc path
-            if (filePath.StartsWith("\\\\", StringComparison.InvariantCulture))
+            if (filePath.StartsWith("\\\\", StringComparison.Ordinal))
             {
             {
                 return filePath;
                 return filePath;
             }
             }