]> source.dussan.org Git - rspamd.git/commitdiff
* Add some broken urls to check list, in fact skip only urls without host part and...
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 6 Mar 2009 14:16:24 +0000 (17:16 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 6 Mar 2009 14:16:24 +0000 (17:16 +0300)
  totally impossible in that code)

src/url.c

index 4c0281f5e51b5acfe9cfb8e77a16c3bd793cb904..6a8106b205a7909e108153508a79185d25fd41c4 100644 (file)
--- 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);
                                                        }
                                                }