Changeset

2088:5a9dc066a388

util.sasl: Add COMPAT comment
author Matthew Wild <mwild1@gmail.com>
date Wed, 18 Nov 2009 03:35:42 +0000
parents 2087:5efd79871205
children 2089:fdd7280c4621 2212:7cb6460b18d8
files util/sasl.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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