projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e56f7d
)
util.json: Fixed a parse error caused by unexpected whitespace.
author
Waqas Hussain
<waqas20@gmail.com>
Sat, 19 Feb 2011 01:47:32 +0000
(06:47 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Sat, 19 Feb 2011 01:47:32 +0000
(06:47 +0500)
util/json.lua
patch
|
blob
|
history
diff --git
a/util/json.lua
b/util/json.lua
index 40939bb4626f80366c8d037f1f78cff5fa1992d7..05453703369e35f642b11acd61c33f93c5e2a97e 100644
(file)
--- 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