diff options
| author | cvium <clausvium@gmail.com> | 2021-09-03 23:56:19 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-09-03 23:56:19 +0200 |
| commit | 1172ece856d91d060ba5122269fc9ea55f336495 (patch) | |
| tree | 98e637cf555d2d81616a14422bfd83aeef8330b2 /Jellyfin.Server.Implementations/Security | |
| parent | 60185f99c4329da7c93cc3769c4c017aab61b6bf (diff) | |
remove leading and trailing whitespace from the key
Diffstat (limited to 'Jellyfin.Server.Implementations/Security')
| -rw-r--r-- | Jellyfin.Server.Implementations/Security/AuthorizationContext.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs b/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs index e559d698a..244abf469 100644 --- a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs +++ b/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs @@ -291,7 +291,7 @@ namespace Jellyfin.Server.Implementations.Security } else if (!escaped && token == '=') { - key = authorizationHeader[start.. i].ToString(); + key = authorizationHeader[start.. i].Trim().ToString(); start = i + 1; } } |
