Fixed: Trim whitespace on Remote Mapping Add

Fixes #4481
This commit is contained in:
Qstick
2020-06-03 21:38:46 -04:00
parent 9ca291ecaf
commit 13f3d0292c
2 changed files with 23 additions and 4 deletions
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -50,8 +50,8 @@ namespace NzbDrone.Core.RemotePathMappings
public RemotePathMapping Add(RemotePathMapping mapping)
{
mapping.LocalPath = new OsPath(mapping.LocalPath).AsDirectory().FullPath;
mapping.RemotePath = new OsPath(mapping.RemotePath).AsDirectory().FullPath;
mapping.LocalPath = new OsPath(mapping.LocalPath.Trim()).AsDirectory().FullPath;
mapping.RemotePath = new OsPath(mapping.RemotePath.Trim()).AsDirectory().FullPath;
var all = All();