# HG changeset patch # User Waqas Hussain # Date 1259688757 -18000 # Node ID 9368ab10c1a88901920821f78d4aca3e3d9af243 # Parent 770a75623ed798eb48869f8c5d8c87c73e666811 util.sasl.plain: Allow empty authzid (thanks bjc). diff -r 770a75623ed7 -r 9368ab10c1a8 util/sasl/plain.lua --- 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";