From be803d679f7a51f93194c86e37168c651471031b Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 9 Jul 2015 22:18:45 +0300 Subject: augeas back-end: check all path components --- aconf/persistence/backends/augeas.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aconf/persistence/backends/augeas.lua b/aconf/persistence/backends/augeas.lua index 7ce68f0..eb954e8 100644 --- a/aconf/persistence/backends/augeas.lua +++ b/aconf/persistence/backends/augeas.lua @@ -72,6 +72,7 @@ local function conv_path(path) repeat local comp = path[1] + assert(tostring(comp):match('^[%w %_%-%.%@%#%$]+$')) if mode then if mode == 'enumerate' then @@ -79,7 +80,7 @@ local function conv_path(path) res = append_pred(res, comp) else local k = key(mode) - assert(k and type(comp) == 'string' and comp:match('^[%w %_%-%.%#]+$')) + assert(k and type(comp) == 'string') res = append_key_pred(res, k, comp) table.insert(keys, k) end -- cgit v1.2.3