aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-02-15 16:04:56 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-02-15 16:04:56 -0300
commit14f136096ca28cba15da7521c798e27327f357d7 (patch)
tree986b4ccec042c21cf6dfdc04eb835c401415678d /src/html.cc
parent21ab6086012d25b3093b5da4407b9c8708ff416b (diff)
Fixed handling of META's content-type with no MIME type (e.g. only charset).
e.g. some links at http://git.kernel.org/gitweb.cgi didn't render. e.g. #2 This page didn't render: <html> <head> <meta http-equiv="content-type" content="; charset=utf-8"/> <title></title> </head> <body> Generating.... </body> </html>
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/html.cc b/src/html.cc
index 64064d6a..bbf49bd4 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -2792,12 +2792,13 @@ static void Html_tag_open_meta(DilloHtml *html, const char *tag, int tagsize)
ds_msg = dStr_sized_new(256);
dStr_sprintf(ds_msg, meta_template, content, delay_str);
{
- int SaveFlags = html->InFlags;
+ int o_InFlags = html->InFlags;
+ int o_TagSoup = html->TagSoup;
html->InFlags = IN_BODY;
html->TagSoup = false;
Html_write_raw(html, ds_msg->str, ds_msg->len, 0);
- html->TagSoup = true;
- html->InFlags = SaveFlags;
+ html->TagSoup = o_TagSoup;
+ html->InFlags = o_InFlags;
}
dStr_free(ds_msg, 1);