Răsfoiți Sursa

fix path substitution

Luke Pulverenti 11 ani în urmă
părinte
comite
36648d2708

+ 2 - 2
MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs

@@ -357,11 +357,11 @@ namespace MediaBrowser.Common.Implementations.IO
             {
                 if (to.IndexOf('/') != -1)
                 {
-                    newPath = path.Replace('\\', '/');
+                    newPath = newPath.Replace('\\', '/');
                 }
                 else
                 {
-                    newPath = path.Replace('/', '\\');
+                    newPath = newPath.Replace('/', '\\');
                 }
             }