aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl_cyrus.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-12-28 20:21:49 +0100
committerTobias Markmann <tm@ayena.de>2009-12-28 20:21:49 +0100
commit5915724fd25160f81ea3a01c31d021626f14aa1d (patch)
treea506088ff5208ba0124c092a72bbcd66c59ff6e8 /util/sasl_cyrus.lua
parentc700f8867c7f78c5c4b27775aee0b638b24d5dda (diff)
downloadprosody-5915724fd25160f81ea3a01c31d021626f14aa1d.tar.gz
prosody-5915724fd25160f81ea3a01c31d021626f14aa1d.zip
util.sasl_cyrus: Fixing cyrus mechanism list parsing. (Thanks darkrain)
Diffstat (limited to 'util/sasl_cyrus.lua')
-rw-r--r--util/sasl_cyrus.lua2
1 files changed, 1 insertions, 1 deletions
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