Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/util/sasl.lua Sat Nov 29 05:53:11 2008 +0500 +++ b/util/sasl.lua Sat Nov 29 05:56:09 2008 +0500 @@ -66,7 +66,7 @@ local function parse(data) message = {} - for k, v in gmatch(data, [[([%w%-]+)="?([%w%-%/%.%+=]+)"?,?]]) do + for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do message[k] = v end return message