{"no_tld", RSPAMD_URL_FLAG_NO_TLD, -1},
{"truncated", RSPAMD_URL_FLAG_TRUNCATED, -1},
{"redirect_target", RSPAMD_URL_FLAG_REDIRECT_TARGET, -1},
+ {"invisible", RSPAMD_URL_FLAG_INVISIBLE, -1},
};
RSPAMD_URL_FLAG_NO_TLD = 1u << 22u,
RSPAMD_URL_FLAG_TRUNCATED = 1u << 23u,
RSPAMD_URL_FLAG_REDIRECT_TARGET = 1u << 24u,
+ RSPAMD_URL_FLAG_INVISIBLE = 1u << 25u,
+
};
#define RSPAMD_URL_MAX_FLAG_SHIFT (25u)
}
if (!lua_url_cbdata_fill (L, 2, &cb, default_protocols_mask,
- ~(0), max_urls)) {
+ ~(RSPAMD_URL_FLAG_INVISIBLE), max_urls)) {
return luaL_error (L, "invalid arguments");
}
/* 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), max_urls)) {
+ ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE|RSPAMD_URL_FLAG_INVISIBLE),
+ max_urls)) {
return luaL_error (L, "invalid arguments");
}
}
if (!lua_url_cbdata_fill (L, 2, &cb, PROTOCOL_MAILTO,
- ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE), max_urls)) {
+ ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE|RSPAMD_URL_FLAG_INVISIBLE),
+ max_urls)) {
return luaL_error (L, "invalid arguments");
}