remove leading and trailing whitespace from the key

This commit is contained in:
cvium
2021-09-03 23:56:19 +02:00
parent 60185f99c4
commit 1172ece856
2 changed files with 54 additions and 7 deletions

View File

@@ -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;
}
}