aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorMiecio Za <miecio@miecio.net>2019-02-27 12:04:10 +0100
committerMiecio Za <miecio@miecio.net>2019-02-27 12:04:10 +0100
commit84264594d874881dd4556dc476d8a3af842787e7 (patch)
treee3a0acfc3a6a9a610d0afccd7c33189f39c388a0 /src/lua
parentadd9595913c3f456c6328a53801739cdca70da9d (diff)
downloadrspamd-84264594d874881dd4556dc476d8a3af842787e7.tar.gz
rspamd-84264594d874881dd4556dc476d8a3af842787e7.zip
[Feature] Add flag to url object when visible part is url_like
Flag is similar to phished but does not require domains to be different
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c
index 7bad50359..58c6a83be 100644
--- a/src/lua/lua_url.c
+++ b/src/lua/lua_url.c
@@ -901,6 +901,7 @@ lua_url_all (lua_State *L)
* - `schemaless`: URL has no schema
* - `unnormalised`: URL has some unicode unnormalities
* - `zw_spaces`: URL has some zero width spaces
+ * - `url_displayed`: URL has some other url-like string in visible part
* @return {table} URL flags
*/
#define PUSH_FLAG(fl, name) do { \
@@ -941,6 +942,7 @@ lua_url_get_flags (lua_State *L)
PUSH_FLAG (RSPAMD_URL_FLAG_SCHEMALESS, "schemaless");
PUSH_FLAG (RSPAMD_URL_FLAG_UNNORMALISED, "unnormalised");
PUSH_FLAG (RSPAMD_URL_FLAG_ZW_SPACES, "zw_spaces");
+ PUSH_FLAG (RSPAMD_URL_FLAG_DISPLAY_URL, "url_displayed");
}
else {
return luaL_error (L, "invalid arguments");