]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Disable lua files execution for now
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 Feb 2017 10:28:37 +0000 (10:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 Feb 2017 10:29:00 +0000 (10:29 +0000)
src/controller.c

index bdbbe23c60a7404f5ad773d884285ac24848201a..8406b6236b2836d7638d8b4e297de83b3a5b9d33 100644 (file)
@@ -3558,10 +3558,12 @@ start_controller_worker (struct rspamd_worker *worker)
                        rspamd_controller_handle_plugins);
        rspamd_controller_register_plugins_paths (ctx);
 
+#if 0
        rspamd_regexp_t *lua_re = rspamd_regexp_new ("^/.*/.*\\.lua$", NULL, NULL);
        rspamd_http_router_add_regexp (ctx->http, lua_re,
                        rspamd_controller_handle_lua);
        rspamd_regexp_unref (lua_re);
+#endif
        luaopen_controller (ctx->cfg->lua_state);
 
        if (ctx->key) {