diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-17 16:34:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-17 16:34:35 +0100 |
commit | 58d60ea07f1478fe5fcc1d152d54237169e3bd43 (patch) | |
tree | c1487c990636254bb22cc82cf54bae364fc8d1d4 /src/libserver/url.h | |
parent | d2ed10141ba44a5de8ae8d54d73ee95cbe1e07cf (diff) | |
download | rspamd-58d60ea07f1478fe5fcc1d152d54237169e3bd43.tar.gz rspamd-58d60ea07f1478fe5fcc1d152d54237169e3bd43.zip |
[Rework] Use C++ version for unicode normalisation
Diffstat (limited to 'src/libserver/url.h')
-rw-r--r-- | src/libserver/url.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/url.h b/src/libserver/url.h index 72fce5f9e..4ace18f1a 100644 --- a/src/libserver/url.h +++ b/src/libserver/url.h @@ -6,6 +6,7 @@ #include "mem_pool.h" #include "khash.h" #include "fstring.h" +#include "libutil/cxx/utf8_util.h" #ifdef __cplusplus extern "C" { @@ -356,7 +357,7 @@ int rspamd_url_cmp_qsort(const void *u1, const void *u2); #define rspamd_url_normalise_propagate_flags(pool, input, len_out, url_flags_out) \ do { \ enum rspamd_normalise_result norm_res; \ - norm_res = rspamd_normalise_unicode_inplace((pool), (input), (len_out)); \ + norm_res = rspamd_normalise_unicode_inplace((input), (len_out)); \ if (norm_res & RSPAMD_UNICODE_NORM_UNNORMAL) { \ url_flags_out |= RSPAMD_URL_FLAG_UNNORMALISED; \ } \ |