mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Allow broken meta refresh commands (fix mail.google.com, bug 1522982)
svn path=/trunk/netsurf/; revision=2777
This commit is contained in:
parent
ca154b54c0
commit
675df80871
@ -428,12 +428,21 @@ bool html_meta_refresh(struct content *c, xmlNode *head)
|
||||
content_broadcast(c, CONTENT_MSG_REFRESH, msg_data);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
for ( ; url <= end - 4; url++) {
|
||||
if (!strncasecmp(url, "url=", 4))
|
||||
break;
|
||||
}
|
||||
|
||||
/* mail.google.com sends out the broken format "<n>, url='<url>'", so
|
||||
* special case this */
|
||||
if (url <= end - 4) {
|
||||
if ((url[4] == '\'') && (end[-1] == '\'')) {
|
||||
*--end = '\0';
|
||||
url++;
|
||||
}
|
||||
}
|
||||
|
||||
if (url <= end - 4) {
|
||||
res = url_join(url + 4, c->data.html.base_url,
|
||||
&refresh);
|
||||
|
Loading…
Reference in New Issue
Block a user