Allow broken meta refresh commands (fix mail.google.com, bug 1522982)

svn path=/trunk/netsurf/; revision=2777
This commit is contained in:
Richard Wilson 2006-07-17 23:57:42 +00:00
parent ca154b54c0
commit 675df80871

View File

@ -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);