aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;