aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Stocchi <tommasostocchi@outlook.com>2020-12-14 13:08:07 +0100
committerTommaso Stocchi <tommasostocchi@outlook.com>2020-12-14 13:08:07 +0100
commit13bc57ecc39ebd485634f64f90ed526b134a521c (patch)
treebcdaf875f8c80dcb1d582cb3ce2f39177354be49
parent064a9cedbd205594fa529ff996b2cd359c5be07c (diff)
No need to double check param length
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index ce2644b8d..f335aa5c5 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;