From 5915724fd25160f81ea3a01c31d021626f14aa1d Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Mon, 28 Dec 2009 20:21:49 +0100 Subject: util.sasl_cyrus: Fixing cyrus mechanism list parsing. (Thanks darkrain) --- util/sasl_cyrus.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua index 7e689f62..4f503f16 100644 --- a/util/sasl_cyrus.lua +++ b/util/sasl_cyrus.lua @@ -64,7 +64,7 @@ end function method:mechanisms() local mechanisms = {} local cyrus_mechs = cyrussasl.listmech(self.cyrus, nil, "", " ", "") - for w in s_gmatch(cyrus_mechs, "%a+") do + for w in s_gmatch(cyrus_mechs, "[^ ]+") do mechanisms[w] = true; end self.mechanisms = mechanisms -- cgit v1.2.3