diff options
author | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2017-11-15 21:20:11 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2017-11-15 21:20:11 +0000 |
commit | b366c77b6cae76d22078f8bb63bdac9de68b05d3 (patch) | |
tree | fff95fa6a7e7505450835f0c836a3b9fc787dae1 /web | |
parent | 0f9bc9b789055023fbc91d6087f7a1d6901ecd1d (diff) | |
download | labitrack-b366c77b6cae76d22078f8bb63bdac9de68b05d3.tar.gz labitrack-b366c77b6cae76d22078f8bb63bdac9de68b05d3.tar.xz labitrack-b366c77b6cae76d22078f8bb63bdac9de68b05d3.zip |
remove duplicate unescape
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Diffstat (limited to 'web')
-rwxr-xr-x | web/labitrackd.lua | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/web/labitrackd.lua b/web/labitrackd.lua index df84bdf..77d15b5 100755 --- a/web/labitrackd.lua +++ b/web/labitrackd.lua @@ -274,14 +274,6 @@ GET('/recent.json', function(req, res) add_json(res, assert(db:run('recent'))) end) -local function unescape(s) - s = string.gsub(s, "+", " ") - s = string.gsub(s, "%%(%x%x)", function (h) - return string.char(tonumber(h, 16)) - end) - return s -end - local function save_or_update(req, res) set_json_nocache_headers(res) |