Diff

util/sasl.lua @ 475:fe861de7a4fc

Forced merge.
author Tobias Markmann <tm@ayena.de>
date Sat, 29 Nov 2008 11:24:59 +0100
parent 472:ee45599c0b5d
parent 458:ac17926c3282
child 476:4744735a0a5e
line wrap: on
line diff
--- a/util/sasl.lua	Fri Nov 28 19:24:08 2008 +0100
+++ b/util/sasl.lua	Sat Nov 29 11:24:59 2008 +0100
@@ -67,7 +67,7 @@
 	
 	local function parse(data)
 		message = {}
-		for k, v in gmatch(data, [[([%w%-]+)="?([%w%-%/%.%+=]+)"?,?]]) do
+		for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder
 			message[k] = v
 		end
 		return message