printf("<HTML><HEAD><TITLE>Cache Manager Error</TITLE>\n");
printf("<STYLE type=\"text/css\"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}--></STYLE></HEAD>\n");
printf("<BODY><H1>Cache Manager Error</H1>\n");
- printf("<P>\n%s</P>\n", msg);
+ printf("<P>\n%s</P>\n", html_quote(msg));
print_trailer();
}
if (!strchr(buf, '\t') || *buf == '\t') {
/* nope, just text */
snprintf(html, sizeof(html), "%s%s",
- table_line_num ? "</table>\n<pre>" : "", buf);
+ table_line_num ? "</table>\n<pre>" : "", html_quote(buf));
table_line_num = 0;
return html;
}
l += snprintf(html + l, sizeof(html) - l, "<%s colspan=\"%d\" align=\"%s\">%s</%s>",
ttag, column_span,
is_header ? "center" : is_number(cell) ? "right" : "left",
- cell, ttag);
+ html_quote(cell), ttag);
}
xfree(buf_copy);