util.sasl: Add COMPAT comment
authorMatthew Wild <mwild1@gmail.com>
Wed, 18 Nov 2009 03:35:42 +0000
changeset 2088 5a9dc066a388
parent 2087 5efd79871205
child 2089 fdd7280c4621
child 2212 7cb6460b18d8
util.sasl: Add COMPAT comment
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