diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-26 14:43:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-26 14:43:50 +0100 |
commit | e17309d3727526fb8cf2403642c739dcdbaae587 (patch) | |
tree | 76ab9002f6063fc374486f54ee23567ecd2c6d65 /src | |
parent | 620093c2a3d306bfe4f67eede2e947025f815f5c (diff) | |
download | rspamd-e17309d3727526fb8cf2403642c739dcdbaae587.tar.gz rspamd-e17309d3727526fb8cf2403642c739dcdbaae587.zip |
[Minor] Fix RSPAMD_URL_FLAG_IDN behaviour
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/url.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index 726f9b7f8..ce98f0961 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1356,7 +1356,6 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len, } else if (*p != '.' && *p != '-' && *p != '_' && *p != '%') { if (*p & 0x80) { - (*flags) |= RSPAMD_URL_FLAG_IDN; guint i = 0; U8_NEXT (((const guchar *)p), i, last - p, uc); @@ -1382,6 +1381,9 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len, } } } + else { + (*flags) |= RSPAMD_URL_FLAG_IDN; + } p = p + i; } |