mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #3186] [MERGED] Don't send Exception message in Production Environment #9371
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/3186
Author: @daullmer
Created: 5/26/2020
Status: ✅ Merged
Merged: 6/4/2020
Merged by: @dkanada
Base:
api-migration← Head:asp-api-exception📝 Commits (2)
a5a3930Don't send Exception message in Production Environment6d9f564Remove duplicate code📊 Changes
1 file changed (+12 additions, -2 deletions)
View changed files
📝
Jellyfin.Server/Middleware/ExceptionMiddleware.cs(+12 -2)📄 Description
Changes
Because of security reasons, exception messages should no longer get sent to the Clients, unless the server is running in Development mode. This PR adds this change only to the new ASP API endpoint.
Issues
Fixes #2965 (in combination with #3185 )
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.