Improved the regexp used to parse the client response a bit. Authenticating with non-ascii realm values now works.

Sat, 29 Nov 2008 05:56:09 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sat, 29 Nov 2008 05:56:09 +0500
changeset 457
f4701f69f459
parent 456
27cb85d4059e
child 458
ac17926c3282

Improved the regexp used to parse the client response a bit. Authenticating with non-ascii realm values now works.

util/sasl.lua file | annotate | diff | comparison | revisions
--- 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

mercurial