Software /
code /
prosody
Changeset
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 |
parents | 456:27cb85d4059e |
children | 458:ac17926c3282 |
files | util/sasl.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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