]> source.dussan.org Git - rspamd.git/commitdiff
* Add hack to disallow misformed urls
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 3 Jul 2009 16:10:10 +0000 (20:10 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 3 Jul 2009 16:10:10 +0000 (20:10 +0400)
src/html.c

index 337bbff4e063f01e676ef64dc2814d3b64c82c67..6e7b683e904bff879f151ef76b45bf23554e5837 100644 (file)
@@ -325,7 +325,7 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i
                        c++;
                }
 
-               if (len == 0) {
+               if (len == 0 || g_ascii_strncasecmp (c, "http://", sizeof ("http://") - 1) != 0) {
                        return;
                }