Skip to content

Commit

Permalink
[Minor] Do not try to check numeric url in utf content
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 11, 2020
1 parent c116e4e commit c3ec216
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libserver/url.c
Expand Up @@ -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;
Expand Down

0 comments on commit c3ec216

Please sign in to comment.