ui-shared: prevent malicious filename from injecting headers

This commit is contained in:
Jason A. Donenfeld
2016-01-14 14:28:37 +01:00
rodzic 4291453ec3
commit 513b3863d9
3 zmienionych plików z 32 dodań i 3 usunięć

1
html.h
Wyświetl plik

@@ -23,6 +23,7 @@ extern void html_ntxt(int len, const char *txt);
extern void html_attr(const char *txt);
extern void html_url_path(const char *txt);
extern void html_url_arg(const char *txt);
extern void html_header_arg_in_quotes(const char *txt);
extern void html_hidden(const char *name, const char *value);
extern void html_option(const char *value, const char *text, const char *selected_value);
extern void html_intoption(int value, const char *text, int selected_value);