From 7020903cc23c78ce8d6aa8312dc414c969e4b766 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 26 Mar 2018 13:12:20 +0100 Subject: [Minor] Propagate unnormalised flag --- src/lua/lua_url.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lua') 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"); -- cgit v1.2.3