static resource URLs are now case sensitive.

This commit is contained in:
kay.one 2013-07-23 23:26:10 -07:00
commit 478caf15f8
16 changed files with 127 additions and 84 deletions

View file

@ -16,14 +16,14 @@ namespace NzbDrone.Api.Frontend
public string Map(string resourceUrl)
{
var path = resourceUrl.Replace('/', Path.DirectorySeparatorChar);
path = path.Trim(Path.DirectorySeparatorChar).ToLower();
path = path.Trim(Path.DirectorySeparatorChar);
return Path.Combine(_appFolderInfo.GetAppDataPath(), path);
}
public bool CanHandle(string resourceUrl)
{
return resourceUrl.StartsWith("/mediacover");
return resourceUrl.StartsWith("/MediaCover");
}
}
}