aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/plain.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-12-01 22:32:37 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-12-01 22:32:37 +0500
commit7e555e0bd96230d161d90bdd9c0816baf254cc71 (patch)
tree6a8a5aa1f45e94bfe08cff8d0e2eed2a77014ab9 /util/sasl/plain.lua
parentcf8aa9d61c01c36cc8262588403e5de5a5870f58 (diff)
downloadprosody-7e555e0bd96230d161d90bdd9c0816baf254cc71.tar.gz
prosody-7e555e0bd96230d161d90bdd9c0816baf254cc71.zip
util.sasl.plain: Allow empty authzid (thanks bjc).
Diffstat (limited to 'util/sasl/plain.lua')
-rw-r--r--util/sasl/plain.lua2
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";