summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_url.c')
-rw-r--r--src/lua/lua_url.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c
index ed1eb1901..6652fdaac 100644
--- a/src/lua/lua_url.c
+++ b/src/lua/lua_url.c
@@ -1035,6 +1035,9 @@ lua_url_cbdata_fill (lua_State *L,
flags_mask &= ~RSPAMD_URL_FLAG_IMAGE;
}
}
+ else {
+ flags_mask &= ~RSPAMD_URL_FLAG_IMAGE;
+ }
lua_pop (L, 1);
lua_getfield (L, pos, "content");
@@ -1046,6 +1049,9 @@ lua_url_cbdata_fill (lua_State *L,
flags_mask &= ~RSPAMD_URL_FLAG_CONTENT;
}
}
+ else {
+ flags_mask &= ~RSPAMD_URL_FLAG_CONTENT;
+ }
lua_pop (L, 1);
lua_getfield (L, pos, "max_urls");