]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix setting path for lua
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 7 Jun 2016 20:17:55 +0000 (22:17 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 7 Jun 2016 20:17:55 +0000 (22:17 +0200)
Issue: #652
Reported by: @vurgun

src/lua/lua_common.c

index 4c5051aeb915968ad2fffdb785dedf73b6cb7dc3..85dbfa37240bc5512f3004ecb08c5118f066ed8f 100644 (file)
@@ -187,13 +187,13 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg)
 
        if (additional_path) {
                rspamd_snprintf (path_buf, sizeof (path_buf),
-                               "%s/lua/?.lua;%s/lua/?.lua;%s;%s;%s",
+                               "%s/lua/?.lua;%s/lua/?.lua;%s/?.lua;%s;%s",
                                RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, RSPAMD_RULESDIR,
                                additional_path, old_path);
        }
        else {
                rspamd_snprintf (path_buf, sizeof (path_buf),
-                               "%s/lua/?.lua;%s/lua/?.lua;%s;%s",
+                               "%s/lua/?.lua;%s/lua/?.lua;%s/?.lua;%s",
                                RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, RSPAMD_RULESDIR,
                                old_path);
        }