Ronan Charles-Lorel преди 2 години
родител
ревизия
31ac861b85
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Emby.Server.Implementations/IO/ManagedFileSystem.cs

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

@@ -294,8 +294,8 @@ namespace Emby.Server.Implementations.IO
         /// <exception cref="ArgumentNullException">The filename is null.</exception>
         /// <exception cref="ArgumentNullException">The filename is null.</exception>
         public string GetValidFilename(string filename)
         public string GetValidFilename(string filename)
         {
         {
-            //necessary because (as per the doc) GetInvalidFileNameChars is not exhaustive and may not return all invalid chars, which creates issues
-            char[] genericInvalidChars = {':'};
+            // necessary because (as per the doc) GetInvalidFileNameChars is not exhaustive and may not return all invalid chars, which creates issues
+            char[] genericInvalidChars = { ':' };
             var invalid = Path.GetInvalidFileNameChars().Concat(genericInvalidChars).ToArray();
             var invalid = Path.GetInvalidFileNameChars().Concat(genericInvalidChars).ToArray();
             var first = filename.IndexOfAny(invalid);
             var first = filename.IndexOfAny(invalid);
             if (first == -1)
             if (first == -1)