Fix meta refresh.

svn path=/trunk/netsurf/; revision=13876
This commit is contained in:
Michael Drake 2012-04-16 16:42:59 +00:00
parent cc35563f2b
commit 8202875dbb

View File

@ -734,7 +734,8 @@ static bool html_meta_refresh_process_element(html_content *c, dom_node *n)
}
/* '"' or "'" or *LWS (we don't care) */
if (url < end) {
if (url > refresh) {
/* There's a URL */
new_url = strndup(refresh, url - refresh);
if (new_url == NULL) {
dom_string_unref(content);