Explorar o código

Allow commas in auth values when wappred in a double quote

Tommaso Stocchi %!s(int64=4) %!d(string=hai) anos
pai
achega
305e5ebaf4

+ 1 - 1
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);