diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-21 12:41:03 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-21 12:41:34 +0000 |
commit | ec8a472f21d83d3bb93a200acdd0d5b257e4e88c (patch) | |
tree | f704eba3e7e03c47e6d78e329d582da0484dc7d3 /src/lua/lua_url.c | |
parent | 1a00212d6271dddc1276eb2e44afaa30971a2cbd (diff) | |
download | rspamd-ec8a472f21d83d3bb93a200acdd0d5b257e4e88c.tar.gz rspamd-ec8a472f21d83d3bb93a200acdd0d5b257e4e88c.zip |
[Feature] Add dedicated ZW spaces detection for URLs
Issue: #2725
Diffstat (limited to 'src/lua/lua_url.c')
-rw-r--r-- | src/lua/lua_url.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 8b18c7c3d..8bc0cf657 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -875,6 +875,7 @@ lua_url_all (lua_State *L) * - `has_user`: URL has user part * - `schemaless`: URL has no schema * - `unnormalised`: URL has some unicode unnormalities + * - `zw_spaces`: URL has some zero width spaces * @return {table} URL flags */ #define PUSH_FLAG(fl, name) do { \ @@ -914,6 +915,7 @@ lua_url_get_flags (lua_State *L) PUSH_FLAG (RSPAMD_URL_FLAG_HAS_USER, "has_user"); PUSH_FLAG (RSPAMD_URL_FLAG_SCHEMALESS, "schemaless"); PUSH_FLAG (RSPAMD_URL_FLAG_UNNORMALISED, "unnormalised"); + PUSH_FLAG (RSPAMD_URL_FLAG_ZW_SPACES, "zw_spaces"); } else { return luaL_error (L, "invalid arguments"); |