1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

NNTP: HTML escape header field values

This commit is contained in:
Jonas Fonseca 2007-09-11 13:21:00 +02:00
parent db115bfece
commit 1961a0ca50

View File

@ -235,7 +235,9 @@ add_nntp_html_start(struct string *html, struct connection *conn)
continue; continue;
} }
add_format_to_string(html, "<b>%s</b>: %s\n", entry, value); add_format_to_string(html, "<b>%s</b>: ", entry);
add_html_to_string(html, value, strlen(value));
add_char_to_string(html, '\n');
mem_free(value); mem_free(value);
mem_free(entry); mem_free(entry);
} }