summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2017-11-15 21:20:11 +0000
committerAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2017-11-15 21:20:11 +0000
commitb366c77b6cae76d22078f8bb63bdac9de68b05d3 (patch)
treefff95fa6a7e7505450835f0c836a3b9fc787dae1 /web
parent0f9bc9b789055023fbc91d6087f7a1d6901ecd1d (diff)
downloadlabitrack-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-xweb/labitrackd.lua8
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)