aboutsummaryrefslogtreecommitdiffstats
path: root/util/json.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-02-19 06:47:32 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-02-19 06:47:32 +0500
commitb40e6b9dd9f6012f9548dd75932e51433e011c2a (patch)
treec733659dc60d7c01910f1ad11cc4a9b11ce9d562 /util/json.lua
parent404c107e3fd464e5bb35b792eb4a13ac22071afa (diff)
downloadprosody-b40e6b9dd9f6012f9548dd75932e51433e011c2a.tar.gz
prosody-b40e6b9dd9f6012f9548dd75932e51433e011c2a.zip
util.json: Fixed a parse error caused by unexpected whitespace.
Diffstat (limited to 'util/json.lua')
-rw-r--r--util/json.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/json.lua b/util/json.lua
index 40939bb4..05453703 100644
--- a/util/json.lua
+++ b/util/json.lua
@@ -268,7 +268,9 @@ function json.decode(json)
return tonumber(s);
end
local function readmember(t)
+ skipstuff();
local k = readstring();
+ skipstuff();
checkandskip(":");
t[k] = readvalue();
end