Browse Source

[Minor] Fix captures checking in lua_regexp

tags/2.6
Vsevolod Stakhov 4 years ago
parent
commit
f5095168e1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/lua/lua_regexp.c

+ 1
- 1
src/lua/lua_regexp.c View File

@@ -513,7 +513,7 @@ lua_regexp_search (lua_State *L)
}

if (data && len > 0) {
if (lua_gettop (L) >= 4) {
if (lua_gettop (L) >= 4 && lua_toboolean (L, 4)) {
capture = TRUE;
captures = g_array_new (FALSE, TRUE,
sizeof (struct rspamd_re_capture));

Loading…
Cancel
Save