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:
parent
db115bfece
commit
1961a0ca50
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user