Mercurial > prosody-hg
diff util/sasl.lua @ 2088:5a9dc066a388
util.sasl: Add COMPAT comment
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 18 Nov 2009 03:35:42 +0000 |
| parents | 47bfc69fb2d2 |
| children | 7cb6460b18d8 108ed17f1dd9 |
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
