SASL: Using locally mapped s_gmatch instead of unavailable gmatch.

Wed, 25 Nov 2009 19:46:22 +0100

author
Tobias Markmann <tm@ayena.de>
date
Wed, 25 Nov 2009 19:46:22 +0100
changeset 2215
4678aa4567c8
parent 2214
a4c8b5763d0a
child 2217
98a880fda813
child 2220
b94bb1334029

SASL: Using locally mapped s_gmatch instead of unavailable gmatch.

util/sasl/digest-md5.lua file | annotate | diff | comparison | revisions
--- a/util/sasl/digest-md5.lua	Wed Nov 25 17:40:24 2009 +0000
+++ b/util/sasl/digest-md5.lua	Wed Nov 25 19:46:22 2009 +0100
@@ -102,7 +102,7 @@
 	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
+		for k, v in s_gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder
 			message[k] = v;
 		end
 		return message;

mercurial