From e83904af550af4eb6f3f06934c7247a02aa3e731 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Mar 2018 18:05:56 +0000 Subject: [PATCH] [Minor] Disallow squeezing of rules with flags --- src/lua/lua_config.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 6abbf7d0ee..0941c0aa3d 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1601,7 +1601,12 @@ lua_config_register_symbol (lua_State * L) return luaL_error (L, "no callback for symbol %s", name); } - type |= lua_parse_symbol_flags (flags_str); + if (flags_str) { + /* Turn off squeezing as well for now */ + /* TODO: deal with it */ + no_squeeze = TRUE; + type |= lua_parse_symbol_flags (flags_str); + } ret = rspamd_register_symbol_fromlua (L, cfg, -- 2.47.3