Index: src/html.c
===================================================================
RCS file: /sfhome/cvs/dillo/dillo/src/html.c,v
retrieving revision 1.234
diff -u -r1.234 html.c
--- src/html.c 25 May 2005 17:45:10 -0000 1.234
+++ src/html.c 9 Jul 2005 10:58:08 -0000
@@ -3204,18 +3204,21 @@
/* Skip to anything after "URL=" */
while (*content && *(content++) != '=');
- /* Send a custom HTML message
- * todo: this is a hairy hack, It'd be much better to build a widget. */
- html_msg = g_strdup_printf(meta_template, content, delay_str);
+ if (*content)
{
- DilloHtmlProcessingState SaveFlags = html->InFlags;
- html->InFlags = IN_BODY;
- html->TagSoup = FALSE;
- Html_write_raw(html, html_msg, strlen(html_msg), 0);
- html->TagSoup = TRUE;
- html->InFlags = SaveFlags;
+ /* Send a custom HTML message
+ * todo: this is a hairy hack, It'd be much better to build a widget. */
+ html_msg = g_strdup_printf(meta_template, content, delay_str);
+ {
+ DilloHtmlProcessingState SaveFlags = html->InFlags;
+ html->InFlags = IN_BODY;
+ html->TagSoup = FALSE;
+ Html_write_raw(html, html_msg, strlen(html_msg), 0);
+ html->TagSoup = TRUE;
+ html->InFlags = SaveFlags;
+ }
+ g_free(html_msg);
}
- g_free(html_msg);
}
}