From 31ef21901866b7b76755436646ab0ed2857815a1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 2 Jul 2015 11:35:51 +0100 Subject: Add workarounds for numeric hosts in URLs. --- src/plugins/surbl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/surbl.c') diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index c6c7fe414..233e7bbb8 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -670,14 +670,14 @@ format_surbl_request (rspamd_mempool_t * pool, len = hostname->len + slen + 2; p = hostname->begin; + is_numeric = url->is_numeric; + while (p - hostname->begin < (gint)hostname->len && dots_num < MAX_LEVELS) { if (*p == '.') { dots[dots_num] = p; dots_num++; } - else if (!g_ascii_isdigit (*p)) { - is_numeric = FALSE; - } + p++; } -- cgit v1.2.3