Skip to content

The Free Software Media System - Server Backend & API

No need to double check param length

Tommaso Stocchi13bc57ecc39e
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index ce2644b8db..f335aa5c56 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
+++ b/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;