From: Vsevolod Stakhov Date: Fri, 6 Mar 2009 14:16:24 +0000 (+0300) Subject: * Add some broken urls to check list, in fact skip only urls without host part and... X-Git-Tag: 0.2.7~267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d932e105aef559198ec2f79b43279a18f52db9e;p=thirdparty%2Frspamd.git * Add some broken urls to check list, in fact skip only urls without host part and empty urls (thought empty urls are totally impossible in that code) --- diff --git a/src/url.c b/src/url.c index 4c0281f5e5..6a8106b205 100644 --- a/src/url.c +++ b/src/url.c @@ -875,7 +875,7 @@ url_parse_text (struct worker_task *task, GByteArray *content) if (rc != URI_ERRNO_OK) { msg_info ("url_parse_html: error while parsing url %s: %s", url_str, url_strerror (rc)); } - else { + if (rc != URI_ERRNO_EMPTY && rc != URI_ERRNO_NO_HOST) { TAILQ_INSERT_TAIL (&task->urls, new, next); } } @@ -920,7 +920,7 @@ url_parse_html (struct worker_task *task, GByteArray *content) if (rc != URI_ERRNO_OK) { msg_info ("url_parse_html: error while parsing url %s: %s", url_str, url_strerror (rc)); } - else { + if (rc != URI_ERRNO_EMPTY && rc != URI_ERRNO_NO_HOST) { TAILQ_INSERT_TAIL (&task->urls, new, next); } }