From: Vsevolod Stakhov Date: Fri, 3 Jul 2009 16:10:10 +0000 (+0400) Subject: * Add hack to disallow misformed urls X-Git-Tag: 0.2.7~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1fdf1e5a155e244a076bd33ed05a2a1c0f7f014;p=thirdparty%2Frspamd.git * Add hack to disallow misformed urls --- diff --git a/src/html.c b/src/html.c index 337bbff4e0..6e7b683e90 100644 --- a/src/html.c +++ b/src/html.c @@ -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; }