diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-26 13:12:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-26 13:12:20 +0100 |
commit | 7020903cc23c78ce8d6aa8312dc414c969e4b766 (patch) | |
tree | 76812ed737ade07aced11b318b95c554654177ce /src/lua | |
parent | c9f14aba4d6c263deee8fb17615db80a63f6be55 (diff) | |
download | rspamd-7020903cc23c78ce8d6aa8312dc414c969e4b766.tar.gz rspamd-7020903cc23c78ce8d6aa8312dc414c969e4b766.zip |
[Minor] Propagate unnormalised flag
Diffstat (limited to 'src/lua')
-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 d0046d5d1..2eea789c8 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -817,6 +817,7 @@ lua_url_all (lua_State *L) * - `has_port`: URL has port * - `has_user`: URL has user part * - `schemaless`: URL has no schema + * - `unnormalised`: URL has some unicode unnormalities * @return {table} URL flags */ #define PUSH_FLAG(fl, name) do { \ @@ -854,6 +855,7 @@ lua_url_get_flags (lua_State *L) PUSH_FLAG (RSPAMD_URL_FLAG_HAS_PORT, "has_port"); PUSH_FLAG (RSPAMD_URL_FLAG_HAS_USER, "has_user"); PUSH_FLAG (RSPAMD_URL_FLAG_SCHEMALESS, "schemaless"); + PUSH_FLAG (RSPAMD_URL_FLAG_UNNORMALISED, "unnormalised"); } else { return luaL_error (L, "invalid arguments"); |