Software /
code /
prosody
Comparison
util/sasl.lua @ 2083:47bfc69fb2d2
util.sasl: Added compatibility workaround for jwchat sending an encoded trailing '\0' in SASL responses.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 18 Nov 2009 06:21:59 +0500 |
parent | 2080:ca419b92a8c7 |
child | 2088:5a9dc066a388 |
comparison
equal
deleted
inserted
replaced
2082:1381b2071c2e | 2083:47bfc69fb2d2 |
---|---|
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 for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder | 132 for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder |
133 message[k] = v; | 133 message[k] = v; |
134 end | 134 end |
135 return message; | 135 return message; |
136 end | 136 end |
137 | 137 |