From c1fdf1e5a155e244a076bd33ed05a2a1c0f7f014 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 3 Jul 2009 20:10:10 +0400 Subject: * Add hack to disallow misformed urls --- src/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html.c') diff --git a/src/html.c b/src/html.c index 337bbff4e..6e7b683e9 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; } -- cgit v1.2.3