From 278328aa1cf603be38d62e43662a48e894731d88 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 11 Jan 2022 20:24:51 +0000 Subject: [PATCH] [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) { -- 2.39.5