The Free Software Media System - Server Backend & API
Apply review suggestions
Erwin de Haan1f3aa3fe6f72
diff --git a/Jellyfin.Api/Controllers/HlsSegmentController.cs b/Jellyfin.Api/Controllers/HlsSegmentController.csindex 5a8542048a..473bdc523c 100644--- a/Jellyfin.Api/Controllers/HlsSegmentController.cs+++ b/Jellyfin.Api/Controllers/HlsSegmentController.cs@@ -61,7 +61,6 @@ namespace Jellyfin.Api.Controllers{// TODO: Deprecate with new iOS appvar file = segmentId + Path.GetExtension(Request.Path);- file = Path.Combine(_serverConfigurationManager.GetTranscodePath(), file);var transcodePath = _serverConfigurationManager.GetTranscodePath();file = Path.GetFullPath(Path.Combine(transcodePath, file));var fileDir = Path.GetDirectoryName(file);@@ -88,7 +87,6 @@ namespace Jellyfin.Api.Controllerspublic ActionResult GetHlsPlaylistLegacy([FromRoute, Required] string itemId, [FromRoute, Required] string playlistId){var file = playlistId + Path.GetExtension(Request.Path);- file = Path.Combine(_serverConfigurationManager.GetTranscodePath(), file);var transcodePath = _serverConfigurationManager.GetTranscodePath();file = Path.GetFullPath(Path.Combine(transcodePath, file));var fileDir = Path.GetDirectoryName(file);@@ -144,7 +142,6 @@ namespace Jellyfin.Api.Controllersvar file = segmentId + Path.GetExtension(Request.Path);var transcodeFolderPath = _serverConfigurationManager.GetTranscodePath();- file = Path.Combine(transcodeFolderPath, file);file = Path.GetFullPath(Path.Combine(transcodeFolderPath, file));var fileDir = Path.GetDirectoryName(file);if (string.IsNullOrEmpty(fileDir) || !fileDir.StartsWith(transcodeFolderPath))