summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-11 12:29:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-11 12:29:08 +0100
commitc3ec216144d3c0f7c53823657727200dc9133843 (patch)
treed9299f29b9eeef32850e58cea18af4876d984077
parentc116e4e35c7caf9b9cd454d85ea088a2c960f62f (diff)
downloadrspamd-c3ec216144d3c0f7c53823657727200dc9133843.tar.gz
rspamd-c3ec216144d3c0f7c53823657727200dc9133843.zip
[Minor] Do not try to check numeric url in utf content
-rw-r--r--src/libserver/url.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index c10073dcb..8186cc804 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -1792,6 +1792,10 @@ rspamd_url_is_ip (struct rspamd_url *uri, rspamd_mempool_t *pool)
return FALSE;
}
+ if (rspamd_str_has_8bit (p, end - p)) {
+ return FALSE;
+ }
+
if (rspamd_parse_inet_address_ip4 (p, end - p, &in4)) {
rspamd_url_regen_from_inet_addr (uri, &in4, AF_INET, pool);
ret = TRUE;