aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-11-14 15:49:31 +0100
committerBond_009 <bond.009@outlook.com>2020-11-14 20:27:59 +0100
commit9041389f651f7e163911b301c623d95c89da9ee5 (patch)
treec91790872be0d02902d608785da99b93d3fa7fdc /Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
parentbc7359f87dafb972dfe79667128f307643015bac (diff)
Use string.Trim(char) instead of string.Trim(char[]) where possible
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index ea22b260e..fdf2e3908 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
@@ -273,7 +273,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
if (param.Length == 2)
{
- var value = NormalizeValue(param[1].Trim(new[] { '"' }));
+ var value = NormalizeValue(param[1].Trim('"'));
result[param[0]] = value;
}
}