diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-14 13:15:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-14 13:15:52 +0100 |
commit | f5095168e1f44c8f02c462a9f34bf34169646492 (patch) | |
tree | 035fee048540e03a4d5ff121b37381051bbd81db /src | |
parent | 8cff3d6084888649180394336281405062d2fadd (diff) | |
download | rspamd-f5095168e1f44c8f02c462a9f34bf34169646492.tar.gz rspamd-f5095168e1f44c8f02c462a9f34bf34169646492.zip |
[Minor] Fix captures checking in lua_regexp
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_regexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c index b782ef7f1..bd3706d16 100644 --- a/src/lua/lua_regexp.c +++ b/src/lua/lua_regexp.c @@ -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)); |