From ae703e45bfafd588fe99250d220f46748e3f1122 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 18 Nov 2009 06:21:59 +0500 Subject: util.sasl: Added compatibility workaround for jwchat sending an encoded trailing '\0' in SASL responses. --- util/sasl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/sasl.lua b/util/sasl.lua index b6fc6d66..91ce768c 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -129,7 +129,7 @@ local function new_digest_md5(realm, credentials_handler) 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; -- cgit v1.2.3