From: Vsevolod Stakhov Date: Tue, 13 Dec 2016 11:01:33 +0000 (+0000) Subject: [Minor] Do not treat IDN urls as bad URLs X-Git-Tag: 1.4.4~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=44979fcbce96c37d823c751a248d64307aa91e59;p=rspamd.git [Minor] Do not treat IDN urls as bad URLs --- diff --git a/src/libserver/html.c b/src/libserver/html.c index 8618930eb..fb2a8a477 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1283,7 +1283,7 @@ rspamd_html_process_url (rspamd_mempool_t *pool, const gchar *start, guint len, if (G_UNLIKELY (s[i] == '\r' || s[i] == '\n')) { continue; } - else if (G_UNLIKELY (!g_ascii_isgraph (s[i]))) { + else if (G_UNLIKELY (s[i] < 0x80 && !g_ascii_isgraph (s[i]))) { /* URL encode */ *d++ = '%'; *d++ = hexdigests[(s[i] >> 4) & 0xf];