]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Disallow squeezing of rules with flags
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Mar 2018 18:05:56 +0000 (18:05 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Mar 2018 18:05:56 +0000 (18:05 +0000)
src/lua/lua_config.c

index 6abbf7d0eecc121b079be53bf6121739a5b08bdf..0941c0aa3dbf17a225a3f66140e072df2a62a2c8 100644 (file)
@@ -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,