aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryService.cs
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-03-03 22:27:49 +0100
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-03-03 22:27:49 +0100
commit76957213e601e8f03c9975707d5e0a22b899207b (patch)
tree4b4e165ee2c83702fea98c8f9e5fc767caafea51 /MediaBrowser.Api/Library/LibraryService.cs
parent7e3b6768f81c1cef6889bd7c500ba563aa13a67c (diff)
parent5276c75cdeb079cd0b24c4b2dc574a584d5817b6 (diff)
Merge remote-tracking branch 'upstream/master' into support-injecting-iconfiguration
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);