diff options
author | Tobias Markmann <tm@ayena.de> | 2009-12-28 20:21:49 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-12-28 20:21:49 +0100 |
commit | 5915724fd25160f81ea3a01c31d021626f14aa1d (patch) | |
tree | a506088ff5208ba0124c092a72bbcd66c59ff6e8 | |
parent | c700f8867c7f78c5c4b27775aee0b638b24d5dda (diff) | |
download | prosody-5915724fd25160f81ea3a01c31d021626f14aa1d.tar.gz prosody-5915724fd25160f81ea3a01c31d021626f14aa1d.zip |
util.sasl_cyrus: Fixing cyrus mechanism list parsing. (Thanks darkrain)
-rw-r--r-- | util/sasl_cyrus.lua | 2 |
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 |