Skip to content

The Free Software Media System - Server Backend & API

fix path substitution

Luke Pulverenti36648d27082c
diff --git a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
index 014fd6f820..dfe93c5c93 100644
--- a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
+++ b/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('/', '\\');
}
}