diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-11 12:29:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-11 12:29:08 +0100 |
commit | c3ec216144d3c0f7c53823657727200dc9133843 (patch) | |
tree | d9299f29b9eeef32850e58cea18af4876d984077 | |
parent | c116e4e35c7caf9b9cd454d85ea088a2c960f62f (diff) | |
download | rspamd-c3ec216144d3c0f7c53823657727200dc9133843.tar.gz rspamd-c3ec216144d3c0f7c53823657727200dc9133843.zip |
[Minor] Do not try to check numeric url in utf content
-rw-r--r-- | src/libserver/url.c | 4 |
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; |