summaryrefslogtreecommitdiffstats
path: root/aconf/persistence/backends/json.lua
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-02-09 19:44:12 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-02-12 16:32:41 +0200
commit29282b5a7d43e8b5ce12b0ec4b7a7620c19a67b6 (patch)
treea8ad7d5343c41950ff9c8f96a55f41a80271f72a /aconf/persistence/backends/json.lua
parent07a0eb180872401b271de40190603df8f3ab3db2 (diff)
downloadaconf-29282b5a7d43e8b5ce12b0ec4b7a7620c19a67b6.tar.bz2
aconf-29282b5a7d43e8b5ce12b0ec4b7a7620c19a67b6.tar.xz
proper escaping for back-end addresses
Diffstat (limited to 'aconf/persistence/backends/json.lua')
-rw-r--r--aconf/persistence/backends/json.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/aconf/persistence/backends/json.lua b/aconf/persistence/backends/json.lua
index bdf2715..5a13955 100644
--- a/aconf/persistence/backends/json.lua
+++ b/aconf/persistence/backends/json.lua
@@ -1,9 +1,9 @@
--[[
-Copyright (c) 2012-2014 Kaarle Ritvanen
+Copyright (c) 2012-2015 Kaarle Ritvanen
See LICENSE file for license details
--]]
-local pth = require('aconf.path')
+local address = require('aconf.path.address')
local Cache = require('aconf.persistence.backends.volatile')
local util = require('aconf.persistence.util')
local copy = require('aconf.util').copy
@@ -26,7 +26,7 @@ function backend:split_path(path)
local res
while #fpath > 0 do
- local fp = pth.join('/', table.unpack(fpath))
+ local fp = address.join('/', table.unpack(fpath))
if self.cache[fp] then return fp, jpath end
table.insert(jpath, 1, fpath[#fpath])
table.remove(fpath)
@@ -35,7 +35,7 @@ function backend:split_path(path)
fpath = '/'
while true do
- fpath = pth.join(fpath, jpath[1])
+ fpath = address.join(fpath, jpath[1])
table.remove(jpath, 1)
local t = posix.stat(fpath, 'type')