From: Paul Mangan Date: Mon, 20 May 2002 07:42:03 +0000 (+0000) Subject: fix url parsing X-Git-Tag: rel_0_7_7~60 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=cc8791741be7ec6825a09ce999c5b3f89ccf5c3b fix url parsing --- diff --git a/src/html.c b/src/html.c index f3c2f0b55..fddb65338 100644 --- a/src/html.c +++ b/src/html.c @@ -550,8 +550,11 @@ static HTMLState html_parse_tag(HTMLParser *parser) /* look for href */ if (!strcmp(href_token, "href")) { /* the next token is the url, between double - * quotes */ + * quotes */ char* url = strtok(NULL, "\""); + if (url && url[0] == '\'') + url = strtok(url,"\'"); + if (!url) break; html_append_str(parser, url, strlen(url)); html_append_char(parser, ' ');