--- a/util/sasl/digest-md5.lua Thu Nov 19 17:20:38 2009 +0100 +++ b/util/sasl/digest-md5.lua Thu Nov 19 17:53:52 2009 +0100 @@ -101,7 +101,8 @@ end local function parse(data) local message = {} - for k, v in s_gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder + -- COMPAT: %z in the pattern to work around jwchat bug (sends "charset=utf-8\0") + for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder message[k] = v; end return message;