Software /
code /
prosody
Diff
util/sasl.lua @ 2873:108ed17f1dd9
util.sasl.plain: Allow empty authzid (thanks bjc).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 01 Dec 2009 22:32:37 +0500 |
parent | 2088:5a9dc066a388 |
child | 2923:b7049746bd29 |
line wrap: on
line diff
--- a/util/sasl.lua Fri Feb 12 21:33:22 2010 +0000 +++ b/util/sasl.lua Tue Dec 01 22:32:37 2009 +0500 @@ -38,7 +38,7 @@ 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]+)")