diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-03-28 00:15:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-28 00:15:57 +0100 |
| commit | 25c6388e234b02fe224c6367ff77991e6b24fa2c (patch) | |
| tree | b06639d6f34dbee6f593c3f7afd8715bcfb6efb1 /Jellyfin.Api/Controllers/ImageByNameController.cs | |
| parent | 3dda25412c2090b6060e1467ce61681d950ee70f (diff) | |
| parent | 8f16e10fc6b138c817d3c21f6cd9a760d30e6d13 (diff) | |
Merge pull request #5600 from cvium/fix-hls-defaults-10.7
Fix hls defaults for 10.7
Diffstat (limited to 'Jellyfin.Api/Controllers/ImageByNameController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ImageByNameController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/ImageByNameController.cs b/Jellyfin.Api/Controllers/ImageByNameController.cs index e1b808098..cdef0b218 100644 --- a/Jellyfin.Api/Controllers/ImageByNameController.cs +++ b/Jellyfin.Api/Controllers/ImageByNameController.cs @@ -82,7 +82,7 @@ namespace Jellyfin.Api.Controllers return NotFound(); } - if (!path.StartsWith(_applicationPaths.GeneralPath)) + if (!path.StartsWith(_applicationPaths.GeneralPath, StringComparison.Ordinal)) { return BadRequest("Invalid image path."); } @@ -177,7 +177,7 @@ namespace Jellyfin.Api.Controllers if (!string.IsNullOrEmpty(path) && System.IO.File.Exists(path)) { - if (!path.StartsWith(basePath)) + if (!path.StartsWith(basePath, StringComparison.Ordinal)) { return BadRequest("Invalid image path."); } @@ -196,7 +196,7 @@ namespace Jellyfin.Api.Controllers if (!string.IsNullOrEmpty(path) && System.IO.File.Exists(path)) { - if (!path.StartsWith(basePath)) + if (!path.StartsWith(basePath, StringComparison.Ordinal)) { return BadRequest("Invalid image path."); } |
