aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ConfigurationController.cs
diff options
context:
space:
mode:
authorgnattu <gnattu@users.noreply.github.com>2024-03-29 03:57:55 +0800
committerGitHub <noreply@github.com>2024-03-28 13:57:55 -0600
commitb496ebc175d1c817e6cc3787155c5ee1086c073b (patch)
tree01b8103b0c34e50e43ca4525ce9aeebf30a8dee5 /Jellyfin.Api/Controllers/ConfigurationController.cs
parent16e72d68839a92598b716b7cad9722e8cd95384d (diff)
fix: disable api endpoint for ffmpeg path for security (#11225)
Co-authored-by: Niels van Velzen <nielsvanvelzen@users.noreply.github.com>
Diffstat (limited to 'Jellyfin.Api/Controllers/ConfigurationController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ConfigurationController.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ConfigurationController.cs b/Jellyfin.Api/Controllers/ConfigurationController.cs
index 8db22f7eb..abe8bec2d 100644
--- a/Jellyfin.Api/Controllers/ConfigurationController.cs
+++ b/Jellyfin.Api/Controllers/ConfigurationController.cs
@@ -125,12 +125,15 @@ public class ConfigurationController : BaseJellyfinApiController
/// <param name="mediaEncoderPath">Media encoder path form body.</param>
/// <response code="204">Media encoder path updated.</response>
/// <returns>Status.</returns>
+ [Obsolete("This endpoint is obsolete.")]
+ [ApiExplorerSettings(IgnoreApi = true)]
[HttpPost("MediaEncoder/Path")]
[Authorize(Policy = Policies.FirstTimeSetupOrElevated)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public ActionResult UpdateMediaEncoderPath([FromBody, Required] MediaEncoderPathDto mediaEncoderPath)
{
- _mediaEncoder.UpdateEncoderPath(mediaEncoderPath.Path, mediaEncoderPath.PathType);
+ // API ENDPOINT DISABLED (NOOP) FOR SECURITY PURPOSES
+ // _mediaEncoder.UpdateEncoderPath(mediaEncoderPath.Path, mediaEncoderPath.PathType);
return NoContent();
}
}