webmcp
changeset 293:81d94b362043
Added missing local statement in env/encode/json.lua
author | jbe |
---|---|
date | Sun Mar 22 17:17:22 2015 +0100 (2015-03-22) |
parents | c1b561ee56c1 |
children | 0a6378afc6da |
files | framework/env/encode/json.lua |
line diff
1.1 --- a/framework/env/encode/json.lua Sun Mar 22 17:12:58 2015 +0100 1.2 +++ b/framework/env/encode/json.lua Sun Mar 22 17:17:22 2015 +0100 1.3 @@ -11,7 +11,7 @@ 1.4 --]]-- 1.5 1.6 function encode.json(obj) 1.7 - str = json.export(obj) 1.8 + local str = json.export(obj) 1.9 str = string.gsub(str, "</", "<\\/") 1.10 str = string.gsub(str, "<!%[CDATA%[", "\\u003c![CDATA[") 1.11 str = string.gsub(str, "]]>", "]]\\u003e")