Software /
code /
prosody
File
teal-src/util/hex.d.tl @ 12918:ed20555f163a
util.sasl.oauthbearer: Fix traceback on authz in unexpected format
E.g. if you were to just pass "username" without @hostname, the split
will return nil, "username" and the nil gets passed to saslprep() and it
does not like that.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 02 Mar 2023 14:37:46 +0100 |
parent | 12606:6683beb96e01 |
line wrap: on
line source
local type s2s = function (s : string) : string local record lib to : s2s from : s2s encode : s2s decode : s2s end return lib