Software /
code /
prosody
Diff
util/sasl/oauthbearer.lua @ 12951:4cc0785f960e
util.sasl.oauthbearer: Fix gs2-header parsing
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 Mar 2023 14:01:03 +0000 |
parent | 12940:2aebd9bf02fc |
child | 12975:d10957394a3c |
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