Comparison

util/sasl.lua @ 457:f4701f69f459

Improved the regexp used to parse the client response a bit. Authenticating with non-ascii realm values now works.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 29 Nov 2008 05:56:09 +0500
parent 449:c0a4a1e63d70
child 458:ac17926c3282
comparison
equal deleted inserted replaced
456:27cb85d4059e 457:f4701f69f459
64 return data 64 return data
65 end 65 end
66 66
67 local function parse(data) 67 local function parse(data)
68 message = {} 68 message = {}
69 for k, v in gmatch(data, [[([%w%-]+)="?([%w%-%/%.%+=]+)"?,?]]) do 69 for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do
70 message[k] = v 70 message[k] = v
71 end 71 end
72 return message 72 return message
73 end 73 end
74 74