# HG changeset patch # User Matthew Wild # Date 1258515342 0 # Node ID 5a9dc066a388b60c5224ca72e7620ec8a1219ee7 # Parent 5efd79871205c69a3fb875f3c7b37429b974eeeb util.sasl: Add COMPAT comment diff -r 5efd79871205 -r 5a9dc066a388 util/sasl.lua --- a/util/sasl.lua Wed Nov 18 08:30:03 2009 +0500 +++ b/util/sasl.lua Wed Nov 18 03:35:42 2009 +0000 @@ -129,6 +129,7 @@ end local function parse(data) local message = {} + -- 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