Software /
code /
prosody
Changeset
12951:4cc0785f960e
util.sasl.oauthbearer: Fix gs2-header parsing
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 Mar 2023 14:01:03 +0000 |
parents | 12950:2cb5994e3f94 |
children | 12952:a668bc1aa39d |
files | util/sasl/oauthbearer.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/sasl/oauthbearer.lua Tue Mar 21 01:46:47 2023 +0300 +++ b/util/sasl/oauthbearer.lua Tue Mar 21 14:01:03 2023 +0000 @@ -11,7 +11,7 @@ return "failure", "not-authorized"; end - local gs2_header, kvpairs = message:match("^(n,[^,]*,),(.+)$"); + local gs2_header, kvpairs = message:match("^(n,[^,]*,)(.+)$"); if not gs2_header then return "failure", "malformed-request"; end