From b6178c9eef938c971116e7fc5bbf7c3dcaab675d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 22 Jun 2011 16:44:42 -0700 Subject: [PATCH] Fixed an issue where RootPaths with a slash at the end would have double slash when adding a new Series. --- NzbDrone.Web/Controllers/AddSeriesController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Web/Controllers/AddSeriesController.cs b/NzbDrone.Web/Controllers/AddSeriesController.cs index 229c909e3..cfd14816d 100644 --- a/NzbDrone.Web/Controllers/AddSeriesController.cs +++ b/NzbDrone.Web/Controllers/AddSeriesController.cs @@ -126,10 +126,10 @@ namespace NzbDrone.Web.Controllers { try { - var path = - rootPath.Replace('|', Path.DirectorySeparatorChar).Replace('^', Path.VolumeSeparatorChar).Replace( - '`', '\'') + - Path.DirectorySeparatorChar + MediaFileProvider.CleanFilename(seriesName); + var path = Path.Combine(rootPath.Replace('|', Path.DirectorySeparatorChar) + .Replace('^', Path.VolumeSeparatorChar) + .Replace('`', '\''), + MediaFileProvider.CleanFilename(seriesName)); //Create the folder for the new series and then Add it _diskProvider.CreateDirectory(path);