mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-26 22:46:37 -04:00
Fixed: Replace duplicate slashes from file names when importing
Fixes #3470
This commit is contained in:
@@ -85,7 +85,13 @@ namespace NzbDrone.Common.Disk
|
||||
case OsPathKind.Windows:
|
||||
return path.Replace('/', '\\');
|
||||
case OsPathKind.Unix:
|
||||
return path.Replace('\\', '/');
|
||||
path = path.Replace('\\', '/');
|
||||
while (path.Contains("//"))
|
||||
{
|
||||
path = path.Replace("//", "/");
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
return path;
|
||||
|
||||
Reference in New Issue
Block a user