]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Propagate unnormalised flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Mar 2018 12:12:20 +0000 (13:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Mar 2018 12:12:20 +0000 (13:12 +0100)
src/lua/lua_url.c

index d0046d5d1dd749937782cd660f1cafa47073336d..2eea789c85e79e6985f3ec2582b64698052a9810 100644 (file)
@@ -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");