aboutsummaryrefslogtreecommitdiff
path: root/ui-shared.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 54bbde7..21f581f 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -692,11 +692,9 @@ void cgit_print_http_headers(void)
htmlf("Content-Type: %s\n", ctx.page.mimetype);
if (ctx.page.size)
htmlf("Content-Length: %zd\n", ctx.page.size);
- if (ctx.page.filename) {
- html("Content-Disposition: inline; filename=\"");
- html_header_arg_in_quotes(ctx.page.filename);
- html("\"\n");
- }
+ if (ctx.page.filename)
+ htmlf("Content-Disposition: inline; filename=\"%s\"\n",
+ ctx.page.filename);
if (!ctx.env.authenticated)
html("Cache-Control: no-cache, no-store\n");
htmlf("Last-Modified: %s\n", http_date(ctx.page.modified));