# HG changeset patch # User Waqas Hussain # Date 1258507319 -18000 # Node ID 47bfc69fb2d2246b80f946b41d6d345144bfb27a # Parent 1381b2071c2e8d5f87384f0e7d06f3fe85f50197 util.sasl: Added compatibility workaround for jwchat sending an encoded trailing '\0' in SASL responses. diff -r 1381b2071c2e -r 47bfc69fb2d2 util/sasl.lua --- 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;