From cc8791741be7ec6825a09ce999c5b3f89ccf5c3b Mon Sep 17 00:00:00 2001 From: Paul Mangan Date: Mon, 20 May 2002 07:42:03 +0000 Subject: [PATCH] fix url parsing --- src/html.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, ' ');