Software /
code /
prosody
Diff
util/sasl.lua @ 2083:47bfc69fb2d2
util.sasl: Added compatibility workaround for jwchat sending an encoded trailing '\0' in SASL responses.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 18 Nov 2009 06:21:59 +0500 |
parent | 2080:ca419b92a8c7 |
child | 2088:5a9dc066a388 |
line wrap: on
line diff
--- a/util/sasl.lua Wed Nov 18 01:09:09 2009 +0000 +++ b/util/sasl.lua Wed Nov 18 06:21:59 2009 +0500 @@ -129,7 +129,7 @@ end local function parse(data) local message = {} - for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder + for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder message[k] = v; end return message;