diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-12-01 22:32:37 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-12-01 22:32:37 +0500 |
commit | 7e555e0bd96230d161d90bdd9c0816baf254cc71 (patch) | |
tree | 6a8a5aa1f45e94bfe08cff8d0e2eed2a77014ab9 /util/sasl | |
parent | cf8aa9d61c01c36cc8262588403e5de5a5870f58 (diff) | |
download | prosody-7e555e0bd96230d161d90bdd9c0816baf254cc71.tar.gz prosody-7e555e0bd96230d161d90bdd9c0816baf254cc71.zip |
util.sasl.plain: Allow empty authzid (thanks bjc).
Diffstat (limited to 'util/sasl')
-rw-r--r-- | util/sasl/plain.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua index a4c8765d..ae5c777a 100644 --- a/util/sasl/plain.lua +++ b/util/sasl/plain.lua @@ -24,7 +24,7 @@ local function plain(self, message) 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"; |