Software /
code /
prosody
Comparison
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 |
parent | 2083:47bfc69fb2d2 |
child | 2212:7cb6460b18d8 |
child | 2873:108ed17f1dd9 |
comparison
equal
deleted
inserted
replaced
2087:5efd79871205 | 2088:5a9dc066a388 |
---|---|
127 end | 127 end |
128 return t_concat(p); | 128 return t_concat(p); |
129 end | 129 end |
130 local function parse(data) | 130 local function parse(data) |
131 local message = {} | 131 local message = {} |
132 -- COMPAT: %z in the pattern to work around jwchat bug (sends "charset=utf-8\0") | |
132 for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder | 133 for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder |
133 message[k] = v; | 134 message[k] = v; |
134 end | 135 end |
135 return message; | 136 return message; |
136 end | 137 end |