projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87f00d9
)
fix url parsing
author
Paul Mangan
<paul@claws-mail.org>
Mon, 20 May 2002 07:42:03 +0000
(07:42 +0000)
committer
Paul Mangan
<paul@claws-mail.org>
Mon, 20 May 2002 07:42:03 +0000
(07:42 +0000)
src/html.c
patch
|
blob
|
history
diff --git
a/src/html.c
b/src/html.c
index f3c2f0b55da76b8691c63586f254ec154cb0eea1..fddb6533849804ead8400af54d9fc7c19e15002f 100644
(file)
--- 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, ' ');