diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-15 18:05:56 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-15 18:05:56 +0000 |
commit | e83904af550af4eb6f3f06934c7247a02aa3e731 (patch) | |
tree | 485d93769d86031efad1a7229bc2938581442945 /src/lua/lua_config.c | |
parent | 5df3eabd4356eea5576e2ce99c4df23ebfacc436 (diff) | |
download | rspamd-e83904af550af4eb6f3f06934c7247a02aa3e731.tar.gz rspamd-e83904af550af4eb6f3f06934c7247a02aa3e731.zip |
[Minor] Disallow squeezing of rules with flags
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r-- | src/lua/lua_config.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 6abbf7d0e..0941c0aa3 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, |