aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libserver/url.c4
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;
}