Tue, 01 Dec 2009 22:32:37 +0500
util.sasl.plain: Allow empty authzid (thanks bjc).
util/sasl/plain.lua | file | annotate | diff | comparison | revisions |
--- 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";