From 0008f2823686b4de25b2bcecbd18eaa67ab4e6a1 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Wed, 6 Dec 2017 20:24:44 +0100 Subject: [PATCH] Fixed: Case sensitivity in handling of static resource names. --- src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs b/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs index 61ed14e9b..4b3b939a1 100644 --- a/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs +++ b/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapper.cs @@ -1,3 +1,4 @@ +using System; using System.IO; using NLog; using NzbDrone.Common.Disk; @@ -28,7 +29,9 @@ namespace NzbDrone.Api.Frontend.Mappers public override bool CanHandle(string resourceUrl) { - return resourceUrl.StartsWith("/Content") || + resourceUrl = resourceUrl.ToLowerInvariant(); + + return resourceUrl.StartsWith("/content") || resourceUrl.EndsWith(".js") || resourceUrl.EndsWith(".map") || resourceUrl.EndsWith(".css") || @@ -37,4 +40,4 @@ namespace NzbDrone.Api.Frontend.Mappers resourceUrl.EndsWith("oauth.html"); } } -} \ No newline at end of file +}