From: Vsevolod Stakhov Date: Thu, 15 Mar 2018 18:05:56 +0000 (+0000) Subject: [Minor] Disallow squeezing of rules with flags X-Git-Tag: 1.7.1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e83904af550af4eb6f3f06934c7247a02aa3e731;p=thirdparty%2Frspamd.git [Minor] Disallow squeezing of rules with flags --- 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,