Software /
code /
prosody
Changeset
2400:b8d2168dc9c3
util.sasl_cyrus: Fixing cyrus mechanism list parsing. (Thanks darkrain)
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Mon, 28 Dec 2009 20:21:49 +0100 |
parents | 2399:0325f241a26c |
children | 2401:dbfdcb75209a |
files | util/sasl_cyrus.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/sasl_cyrus.lua Sun Dec 27 10:09:22 2009 +0500 +++ b/util/sasl_cyrus.lua Mon Dec 28 20:21:49 2009 +0100 @@ -64,7 +64,7 @@ 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