aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.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
commit2f06e65cd617859e230cb978af8b9a57c4bab8e6 (patch)
tree696bd2429339ea99a2023c33bed97ea4ce3a82ed /util/sasl.lua
parent4bfd2f37a984ea4f40b5fb94e1333b4fe250e3fd (diff)
downloadprosody-2f06e65cd617859e230cb978af8b9a57c4bab8e6.tar.gz
prosody-2f06e65cd617859e230cb978af8b9a57c4bab8e6.zip
util.sasl.plain: Allow empty authzid (thanks bjc).
Diffstat (limited to 'util/sasl.lua')
-rw-r--r--util/sasl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 402f05b4..5bc6db75 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -38,7 +38,7 @@ local function new_plain(realm, credentials_handler)
function object.feed(self, message)
if message == "" or message == nil then return "failure", "malformed-request" end
local response = message
- local authorization = s_match(response, "([^%z]+)")
+ local authorization = s_match(response, "([^%z]*)")
local authentication = s_match(response, "%z([^%z]+)%z")
local password = s_match(response, "%z[^%z]+%z([^%z]+)")