فهرست منبع

No need to double check param length

Tommaso Stocchi 4 سال پیش
والد
کامیت
13bc57ecc3
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 4
      Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs

+ 1 - 4
Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs

@@ -273,10 +273,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
             {
                 var param = item.Trim().Split('=', 2);
 
-                if (param.Length == 2)
-                {
-                    result[param[0]] = param[1].Trim('"');
-                }
+                result[param[0]] = param[1].Trim('"');
             }
 
             return result;