Skip to content

The Free Software Media System - Server Backend & API

Allow commas in auth values when wappred in a double quote

Tommaso Stocchi305e5ebaf40d
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index f335aa5c56..354e037153 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
@@ -265,7 +265,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
// Remove uptil the first space
authorizationHeader = parts[1];
- parts = authorizationHeader.Split(',');
+ parts = authorizationHeader.Split("\",\"");
var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);