Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/util/sasl/digest-md5.lua Thu Nov 19 17:20:38 2009 +0100 +++ b/util/sasl/digest-md5.lua Thu Nov 19 17:53:52 2009 +0100 @@ -101,7 +101,8 @@ end local function parse(data) local message = {} - for k, v in s_gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder + -- 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 return message;