From 29282b5a7d43e8b5ce12b0ec4b7a7620c19a67b6 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Mon, 9 Feb 2015 19:44:12 +0200 Subject: proper escaping for back-end addresses --- aconf/persistence/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'aconf/persistence/init.lua') diff --git a/aconf/persistence/init.lua b/aconf/persistence/init.lua index d95da2d..8056c16 100644 --- a/aconf/persistence/init.lua +++ b/aconf/persistence/init.lua @@ -1,12 +1,12 @@ --[[ -Copyright (c) 2012-2014 Kaarle Ritvanen +Copyright (c) 2012-2015 Kaarle Ritvanen See LICENSE file for license details --]] local loadmods = require('aconf.loader') local topology = require('aconf.model.root').topology local object = require('aconf.object') -local pth = require('aconf.path') +local address = require('aconf.path.address') local util = require('aconf.util') local contains = util.contains @@ -34,7 +34,7 @@ function DataStore:trigger(phase, path, func) end function DataStore:split_path(path) - local comps = pth.split(path) + local comps = address.split(path) local backend = self.backends[comps[1]] assert(backend) table.remove(comps, 1) @@ -93,7 +93,7 @@ function DataStore:_set_multiple(mods) local tp = path while not trigger[tp] do trigger[tp] = true - tp = pth.parent(tp) + tp = address.parent(tp) end local backend, comps = self:split_path(path) -- cgit v1.2.3