aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-29 05:56:09 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-29 05:56:09 +0500
commitfa1df6cfe4f7dae1827faf785c40c42f3d00a6db (patch)
tree9e4f7254f0bd9c27ba10c2199d18a385fe131a65 /util
parent34b736f5cf8a7c09f460c982dbf9332989da868e (diff)
downloadprosody-fa1df6cfe4f7dae1827faf785c40c42f3d00a6db.tar.gz
prosody-fa1df6cfe4f7dae1827faf785c40c42f3d00a6db.zip
Improved the regexp used to parse the client response a bit. Authenticating with non-ascii realm values now works.
Diffstat (limited to 'util')
-rw-r--r--util/sasl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 001f40fb..a1f36760 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -66,7 +66,7 @@ local function new_digest_md5(realm, password_handler)
local function parse(data)
message = {}
- for k, v in gmatch(data, [[([%w%-]+)="?([%w%-%/%.%+=]+)"?,?]]) do
+ for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do
message[k] = v
end
return message