Changeset

2269:9368ab10c1a8

util.sasl.plain: Allow empty authzid (thanks bjc).
author Waqas Hussain <waqas20@gmail.com>
date Tue, 01 Dec 2009 22:32:37 +0500
parents 2268:770a75623ed7
children 2271:a6d69f00a509 2290:ef7027a0f0c9 2313:d76e8d7b7f5d
files util/sasl/plain.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/sasl/plain.lua	Tue Dec 01 02:23:48 2009 +0500
+++ b/util/sasl/plain.lua	Tue Dec 01 22:32:37 2009 +0500
@@ -24,7 +24,7 @@
 		return "failure", "malformed-request";
 	end
 
-	local authorization, authentication, password = s_match(message, "^([^%z]+)%z([^%z]+)%z([^%z]+)");
+	local authorization, authentication, password = s_match(message, "^([^%z]*)%z([^%z]+)%z([^%z]+)");
 
 	if not authorization then
 		return "failure", "malformed-request";