aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c6
1 files changed, 3 insertions, 3 deletions
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++;
}