commit 278328a: [Fix] Fix exclude flags setting
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Jan 11 20:28:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-01-11 20:24:51 +0000
URL: https://github.com/rspamd/rspamd/commit/278328aa1cf603be38d62e43662a48e894731d88
[Fix] Fix exclude flags setting
---
src/lua/lua_url.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c
index 26dd1eb7c..2d9d64b39 100644
--- a/src/lua/lua_url.c
+++ b/src/lua/lua_url.c
@@ -1262,7 +1262,7 @@ lua_url_cbdata_fill_exclude_include (lua_State *L,
if (pos_arg_type == LUA_TTABLE) {
exclude_flags_mask = 0; /* Reset to no flags */
- for (lua_pushnil(L); lua_next(L, pos); lua_pop (L, 1)) {
+ for (lua_pushnil(L); lua_next(L, pos + 1); lua_pop (L, 1)) {
int nmask = 0;
if (lua_type (L, -1) == LUA_TSTRING) {
More information about the Commits
mailing list