commit 3b7a31f: [Minor] Revert ignoring of the invisible urls by default

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Aug 18 20:35:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-08-18 21:28:46 +0100
URL: https://github.com/rspamd/rspamd/commit/3b7a31f8c27239ef3f629fb626292fe934377ba7 (HEAD -> master)

[Minor] Revert ignoring of the invisible urls by default

---
 src/lua/lua_mimepart.c | 2 +-
 src/lua/lua_task.c     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c
index f403313a1..66b588e3a 100644
--- a/src/lua/lua_mimepart.c
+++ b/src/lua/lua_mimepart.c
@@ -2116,7 +2116,7 @@ lua_mimepart_get_urls (lua_State * L)
 	}
 
 	if (!lua_url_cbdata_fill (L, 2, &cb, default_protocols_mask,
-			~(RSPAMD_URL_FLAG_INVISIBLE), max_urls)) {
+			~(0), max_urls)) {
 		return luaL_error (L, "invalid arguments");
 	}
 
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 42dbbae25..eabbb2609 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2462,7 +2462,7 @@ lua_task_get_urls (lua_State * L)
 
 		/* Exclude RSPAMD_URL_FLAG_CONTENT to preserve backward compatibility */
 		if (!lua_url_cbdata_fill (L, 2, &cb, default_protocols_mask,
-				~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE|RSPAMD_URL_FLAG_INVISIBLE),
+				~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE),
 				max_urls)) {
 			return luaL_error (L, "invalid arguments");
 		}
@@ -2735,7 +2735,7 @@ lua_task_get_emails (lua_State * L)
 			}
 
 			if (!lua_url_cbdata_fill (L, 2, &cb, PROTOCOL_MAILTO,
-					~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE|RSPAMD_URL_FLAG_INVISIBLE),
+					~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE),
 					max_urls)) {
 				return luaL_error (L, "invalid arguments");
 			}


More information about the Commits mailing list