aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-02 11:35:51 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-02 11:36:28 +0100
commit31ef21901866b7b76755436646ab0ed2857815a1 (patch)
tree46ad73bfe7b1ee907d3c964ab715d5988953a71f /src/plugins/surbl.c
parent689ed83366449fee3d783848cdb4fed6fbfabdc0 (diff)
downloadrspamd-31ef21901866b7b76755436646ab0ed2857815a1.tar.gz
rspamd-31ef21901866b7b76755436646ab0ed2857815a1.zip
Add workarounds for numeric hosts in URLs.
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++;
}