diff options
author | Jason A. Donenfeld | 2015-08-12 14:50:09 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2015-08-12 15:03:32 +0200 |
commit | d7034806a4b1279f62d606501f831dcad31798e6 (patch) | |
tree | 1aafe109f0598dcb3b32dda27173031893e5956a /ui-shared.h | |
parent | 13c2d3df0440ce04273de3149631a9bd97490c6e (diff) | |
download | cgit-d7034806a4b1279f62d606501f831dcad31798e6.tar.gz cgit-d7034806a4b1279f62d606501f831dcad31798e6.tar.bz2 cgit-d7034806a4b1279f62d606501f831dcad31798e6.zip |
about: always ensure page has a trailing slash
Otherwise we can't easily embed links to other /about/ pages.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-shared.h')
-rw-r--r-- | ui-shared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-shared.h b/ui-shared.h index 1b8ecb5..43d0fa6 100644 --- a/ui-shared.h +++ b/ui-shared.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef UI_SHARED_H | 1 | #ifndef UI_SHARED_H |
2 | #define UI_SHARED_H | 2 | #define UI_SHARED_H |
3 | 3 | ||
4 | #include <stdbool.h> | ||
5 | |||
4 | extern const char *cgit_httpscheme(); | 6 | extern const char *cgit_httpscheme(); |
5 | extern const char *cgit_hosturl(); | 7 | extern const char *cgit_hosturl(); |
6 | extern const char *cgit_rooturl(); | 8 | extern const char *cgit_rooturl(); |
@@ -61,6 +63,7 @@ extern void cgit_vprint_error(const char *fmt, va_list ap); | |||
61 | extern void cgit_print_date(time_t secs, const char *format, int local_time); | 63 | extern void cgit_print_date(time_t secs, const char *format, int local_time); |
62 | extern void cgit_print_age(time_t t, time_t max_relative, const char *format); | 64 | extern void cgit_print_age(time_t t, time_t max_relative, const char *format); |
63 | extern void cgit_print_http_headers(void); | 65 | extern void cgit_print_http_headers(void); |
66 | extern void cgit_redirect(const char *url, bool permanent); | ||
64 | extern void cgit_print_docstart(void); | 67 | extern void cgit_print_docstart(void); |
65 | extern void cgit_print_docend(); | 68 | extern void cgit_print_docend(); |
66 | extern void cgit_print_pageheader(void); | 69 | extern void cgit_print_pageheader(void); |