diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-06 17:16:24 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-06 17:16:24 +0300 |
commit | 4d932e105aef559198ec2f79b43279a18f52db9e (patch) | |
tree | ac713cc64627f629349cb81b23cf62a369c9f64e /src/url.c | |
parent | 6e382e5e70667dea4044645b57a2e8e3ccbc3254 (diff) | |
download | rspamd-4d932e105aef559198ec2f79b43279a18f52db9e.tar.gz rspamd-4d932e105aef559198ec2f79b43279a18f52db9e.zip |
* 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)
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } |