diff options
author | Tobias Markmann <tm@ayena.de> | 2009-08-28 19:20:12 +0200 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-08-28 19:20:12 +0200 |
commit | cc716d31b6b0e2a6f764fd19832175e30a981c75 (patch) | |
tree | e67134632d15c58560d13da135e3df77f029ea6b /util | |
parent | 1d2b8a073bfb81c0e70732d273bcede5bd6ce67c (diff) | |
download | prosody-cc716d31b6b0e2a6f764fd19832175e30a981c75.tar.gz prosody-cc716d31b6b0e2a6f764fd19832175e30a981c75.zip |
Allow ampersands in passwords for SASL PLAIN mechanism.
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 687878c4..e7d90704 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -119,9 +119,9 @@ end --SASL PLAIN local function sasl_mechanism_plain(self, message) local response = message - local authorization = s_match(response, "([^&%z]+)") - local authentication = s_match(response, "%z([^&%z]+)%z") - local password = s_match(response, "%z[^&%z]+%z([^&%z]+)") + local authorization = s_match(response, "([^%z]+)") + local authentication = s_match(response, "%z([^%z]+)%z") + local password = s_match(response, "%z[^%z]+%z([^%z]+)") if authentication == nil or password == nil then return "failure", "malformed-request"; |