Software /
code /
prosody
Diff
util/sasl/plain.lua @ 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 |
parent | 2263:ff881b857c98 |
child | 2290:ef7027a0f0c9 |
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";