Software / code / prosody
Changeset
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 |
| parents | 2082:1381b2071c2e |
| children | 2084:ded03b7b040e |
| files | util/sasl.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;