소스 검색

Added UrlDecode for authorization parts

Tommaso Stocchi 4 년 전
부모
커밋
452af30511
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs

+ 2 - 2
Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs

@@ -309,7 +309,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
                         // Meeting a comma after a closing escape char means the value is complete
                         if (start < i)
                         {
-                            result.Add(authtorizationHeader[start..(i)]);
+                            result.Add(WebUtility.UrlDecode(authtorizationHeader[start..(i)]));
                         }
 
                         start = i + 1;
@@ -322,7 +322,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
             // Add last value
             if (start < i)
             {
-                result.Add(authtorizationHeader[start..(i)]);
+                result.Add(WebUtility.UrlDecode(authtorizationHeader[start..(i)]));
             }
 
             return result.ToArray();