# HG changeset patch # User Tobias Markmann # Date 1219705273 -7200 # Node ID ba8e796f9f94239a42e3054487403ee182df64ae # Parent c0d754774db29e3b10f29b8fda5d68f6586a379f * missing base64 decode of SASL response diff -r c0d754774db2 -r ba8e796f9f94 util/sasl.lua --- a/util/sasl.lua Tue Aug 26 00:57:46 2008 +0200 +++ b/util/sasl.lua Tue Aug 26 01:01:13 2008 +0200 @@ -8,7 +8,7 @@ object.feed = function(self, stanza) if (stanza.name ~= "response") then self.onFail() end if (stanza.attr.xmlns ~= "urn:ietf:params:xml:ns:xmpp-sasl") then self.onFail() end - local response = stanza.tag[1] + local response = base64.decode(stanza.tag[1]) local authorization = string.match(response, [[([^&\0]+)]]) local authentication = string.match(response, [[\0([^&\0]+)\0]]) local password = string.match(response, [[\0[^&\0]+\0([^&\0]+)]])