diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-02 11:07:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-02 11:07:53 +0100 |
commit | 40e894b9dfda24c8b454bf2365905d517e8e27a3 (patch) | |
tree | 05aea809f2ea02047edfaeaefabe28ff97fb6de3 /src/lua/lua_url.c | |
parent | 61c2a3c1e4ef7291130c8f6ea45d0b72e4b86d22 (diff) | |
download | rspamd-40e894b9dfda24c8b454bf2365905d517e8e27a3.tar.gz rspamd-40e894b9dfda24c8b454bf2365905d517e8e27a3.zip |
[Rework] Rework HTML content urls extraction
Diffstat (limited to 'src/lua/lua_url.c')
-rw-r--r-- | src/lua/lua_url.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 9bc984da3..a0f8c4648 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -799,7 +799,7 @@ lua_url_create (lua_State *L) return luaL_error (L, "invalid arguments"); } else { - rspamd_url_find_single (pool, text, length, FALSE, + rspamd_url_find_single (pool, text, length, RSPAMD_URL_FIND_ALL, lua_url_single_inserter, L); if (lua_type (L, -1) != LUA_TUSERDATA) { @@ -867,7 +867,8 @@ lua_url_all (lua_State *L) if (text != NULL) { lua_newtable (L); - rspamd_url_find_multiple (pool, text, length, FALSE, NULL, + rspamd_url_find_multiple (pool, text, length, + RSPAMD_URL_FIND_ALL, NULL, lua_url_table_inserter, L); } |