aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-14 13:15:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-14 13:15:52 +0100
commitf5095168e1f44c8f02c462a9f34bf34169646492 (patch)
tree035fee048540e03a4d5ff121b37381051bbd81db /src
parent8cff3d6084888649180394336281405062d2fadd (diff)
downloadrspamd-f5095168e1f44c8f02c462a9f34bf34169646492.tar.gz
rspamd-f5095168e1f44c8f02c462a9f34bf34169646492.zip
[Minor] Fix captures checking in lua_regexp
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_regexp.c2
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));