fix url parsing
This commit is contained in:
parent
87f00d9922
commit
cc8791741b
1 changed files with 4 additions and 1 deletions
|
@ -552,6 +552,9 @@ static HTMLState html_parse_tag(HTMLParser *parser)
|
|||
/* the next token is the url, between double
|
||||
* 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, ' ');
|
||||
|
|
Loading…
Reference in a new issue