diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-03-20 14:11:41 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-03-25 12:48:22 +0200 |
commit | 5d663a122ea39802c096a57ad3fb471dee347759 (patch) | |
tree | e065df62daadce671a7e83532426af28db2a39b1 /acf/persistence/backends/json.lua | |
parent | 84c91f33056d68216429e488ea1bc074b3f23d75 (diff) | |
download | aconf-5d663a122ea39802c096a57ad3fb471dee347759.tar.bz2 aconf-5d663a122ea39802c096a57ad3fb471dee347759.tar.xz |
allow escaped slashes in object path names
Diffstat (limited to 'acf/persistence/backends/json.lua')
-rw-r--r-- | acf/persistence/backends/json.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/acf/persistence/backends/json.lua b/acf/persistence/backends/json.lua index 7300ce9..6500d13 100644 --- a/acf/persistence/backends/json.lua +++ b/acf/persistence/backends/json.lua @@ -1,5 +1,5 @@ --[[ -Copyright (c) 2012 Kaarle Ritvanen +Copyright (c) 2012-2013 Kaarle Ritvanen See LICENSE file for license details --]] @@ -34,7 +34,7 @@ function backend:split_path(path) local res while #fpath > 0 do - local fp = pth.join('/', unpack(fpath)) + local fp = pth.mjoin('/', unpack(fpath)) if self.cache[fp] then return fp, jpath end table.insert(jpath, 1, fpath[#fpath]) table.remove(fpath) @@ -43,7 +43,7 @@ function backend:split_path(path) fpath = '/' while true do - fpath = pth.join(fpath, jpath[1]) + fpath = pth.mjoin(fpath, jpath[1]) table.remove(jpath, 1) local attrs = lfs.attributes(fpath) |