From 236f93295069d2c700859e5c7566b14267a6960a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 7 Jun 2016 22:17:55 +0200 Subject: [PATCH] [Fix] Fix setting path for lua Issue: #652 Reported by: @vurgun --- src/lua/lua_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index fc65a67df..7bdf41b6b 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -185,13 +185,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); } -- 2.39.5