Fixed: Prevent adding a series if the path is the ancestor of another series

This commit is contained in:
Mark McDowall
2014-06-22 11:01:22 -07:00
parent 801b1b4ec4
commit 6184105d3c
5 changed files with 52 additions and 12 deletions

View File

@@ -47,7 +47,7 @@ namespace NzbDrone.Common
{
if (!parentPath.IsParentPath(childPath))
{
throw new NzbDrone.Common.Exceptions.NotParentException("{0} is not a child of {1}", childPath, parentPath);
throw new Exceptions.NotParentException("{0} is not a child of {1}", childPath, parentPath);
}
return childPath.Substring(parentPath.Length).Trim(Path.DirectorySeparatorChar);