aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryService.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-04-01 18:53:22 +0200
committerBond_009 <bond.009@outlook.com>2020-04-01 18:53:22 +0200
commit787049f35f849c5eb013ec8588068055c351e074 (patch)
treebf6a0ba6c1e5fdba81363a8cde604f5930c70793 /MediaBrowser.Api/Library/LibraryService.cs
parente699e5d405792a598fdf6d0e723db52555af0492 (diff)
parent58900bb57e2a0dc4ca3505fe9e21419b9cf84a37 (diff)
Merge branch 'master' into minor
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs
index 3d1e4a363..15284958d 100644
--- a/MediaBrowser.Api/Library/LibraryService.cs
+++ b/MediaBrowser.Api/Library/LibraryService.cs
@@ -815,7 +815,7 @@ namespace MediaBrowser.Api.Library
if (!string.IsNullOrWhiteSpace(filename))
{
// Kestrel doesn't support non-ASCII characters in headers
- if (Regex.IsMatch(filename, "[^[:ascii:]]"))
+ if (Regex.IsMatch(filename, @"[^\p{IsBasicLatin}]"))
{
// Manually encoding non-ASCII characters, following https://tools.ietf.org/html/rfc5987#section-3.2.2
headers[HeaderNames.ContentDisposition] = "attachment; filename*=UTF-8''" + WebUtility.UrlEncode(filename);