fix url parsing
authorPaul Mangan <paul@claws-mail.org>
Mon, 20 May 2002 07:42:03 +0000 (07:42 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 20 May 2002 07:42:03 +0000 (07:42 +0000)
src/html.c

index f3c2f0b55da76b8691c63586f254ec154cb0eea1..fddb6533849804ead8400af54d9fc7c19e15002f 100644 (file)
@@ -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, ' ');