Browse Source

[Minor] Do not expand implicit arrays as it breaks things

tags/1.8.3
Vsevolod Stakhov 5 years ago
parent
commit
a1e3ab7e5e
2 changed files with 5 additions and 1 deletions
  1. 4
    0
      lualib/lua_redis.lua
  2. 1
    1
      src/lua/lua_common.c

+ 4
- 0
lualib/lua_redis.lua View File

@@ -374,6 +374,10 @@ local function try_load_redis_servers(options, rspamd_config, result)
return true
end

lutil.debugm(N, rspamd_config,
'cannot load redis server from obj: %s, processed to %s',
options, result)

return false
end


+ 1
- 1
src/lua/lua_common.c View File

@@ -2367,7 +2367,7 @@ rspamd_lua_try_load_redis (lua_State *L, const ucl_object_t *obj,
}

/* Function arguments */
ucl_object_push_lua (L, obj, true);
ucl_object_push_lua (L, obj, false);
pcfg = lua_newuserdata (L, sizeof (*pcfg));
rspamd_lua_setclass (L, "rspamd{config}", -1);
*pcfg = cfg;

Loading…
Cancel
Save