aboutsummaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorJason A. Donenfeld2016-01-14 14:28:37 +0100
committerJason A. Donenfeld2016-01-14 14:28:37 +0100
commit513b3863d999f91b47d7e9f26710390db55f9463 (patch)
treef704af1ea3f8da9b3b2904fbe8ed8233278314c6 /html.h
parent4291453ec30656c2f59645d8a74cf295ce0253a9 (diff)
downloadcgit-513b3863d999f91b47d7e9f26710390db55f9463.tar.gz
cgit-513b3863d999f91b47d7e9f26710390db55f9463.tar.bz2
cgit-513b3863d999f91b47d7e9f26710390db55f9463.zip
ui-shared: prevent malicious filename from injecting headers
Diffstat (limited to 'html.h')
-rw-r--r--html.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/html.h b/html.h
index c554763..c72e845 100644
--- a/html.h
+++ b/html.h
@@ -23,6 +23,7 @@ extern void html_ntxt(int len, const char *txt);
23extern void html_attr(const char *txt); 23extern void html_attr(const char *txt);
24extern void html_url_path(const char *txt); 24extern void html_url_path(const char *txt);
25extern void html_url_arg(const char *txt); 25extern void html_url_arg(const char *txt);
26extern void html_header_arg_in_quotes(const char *txt);
26extern void html_hidden(const char *name, const char *value); 27extern void html_hidden(const char *name, const char *value);
27extern void html_option(const char *value, const char *text, const char *selected_value); 28extern void html_option(const char *value, const char *text, const char *selected_value);
28extern void html_intoption(int value, const char *text, int selected_value); 29extern void html_intoption(int value, const char *text, int selected_value);