aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-02-24 23:16:08 +0100
committerKim Alvefur <zash@zash.se>2020-02-24 23:16:08 +0100
commitc008722d2b5ddb998d501d7259020f0df9788c33 (patch)
tree3e34003738336c4d1ef21e3ca0393c062c69de11
parent0a4ab367411a9d90dbe74995c0be4d7597429a1e (diff)
downloadprosody-c008722d2b5ddb998d501d7259020f0df9788c33.tar.gz
prosody-c008722d2b5ddb998d501d7259020f0df9788c33.zip
util.datamanager: Fix iterating over "users" (thanks marc0s)
The 'store' path componend used to be unescaped until 756a2a00e7e7 added escaping to address issues with characters like '/' used in PEP, but with a special case for '_' which was already in common use in 'store' path components. Missed adding this escaping here.
-rw-r--r--util/datamanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index cf96887b..0d7060b7 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -320,7 +320,7 @@ local type_map = {
local function users(host, store, typ) -- luacheck: ignore 431/store
typ = type_map[typ or "keyval"];
- local store_dir = format("%s/%s/%s", data_path, encode(host), store);
+ local store_dir = format("%s/%s/%s", data_path, encode(host), store_encode(store));
local mode, err = lfs.attributes(store_dir, "mode");
if not mode then