浏览代码

Allow commas in auth values when wappred in a double quote

Tommaso Stocchi 4 年之前
父节点
当前提交
305e5ebaf4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs

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