Comparison

util/sasl/digest-md5.lua @ 2212:7cb6460b18d8

Merge with trunk.
author Tobias Markmann <tm@ayena.de>
date Thu, 19 Nov 2009 17:53:52 +0100
parent 2211:6094a4e2b6f3
child 2215:4678aa4567c8
comparison
equal deleted inserted replaced
2211:6094a4e2b6f3 2212:7cb6460b18d8
99 end 99 end
100 return t_concat(p); 100 return t_concat(p);
101 end 101 end
102 local function parse(data) 102 local function parse(data)
103 local message = {} 103 local message = {}
104 for k, v in s_gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder 104 -- COMPAT: %z in the pattern to work around jwchat bug (sends "charset=utf-8\0")
105 for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder
105 message[k] = v; 106 message[k] = v;
106 end 107 end
107 return message; 108 return message;
108 end 109 end
109 110