diff options
| author | Tommaso Stocchi <tommasostocchi@outlook.com> | 2020-12-14 13:08:07 +0100 |
|---|---|---|
| committer | Tommaso Stocchi <tommasostocchi@outlook.com> | 2020-12-14 13:08:07 +0100 |
| commit | 13bc57ecc39ebd485634f64f90ed526b134a521c (patch) | |
| tree | bcdaf875f8c80dcb1d582cb3ce2f39177354be49 | |
| parent | 064a9cedbd205594fa529ff996b2cd359c5be07c (diff) | |
No need to double check param length
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs | 5 |
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; |
