summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/html.c b/html.c
index 3bd192a..d884b63 100644
--- a/html.c
+++ b/html.c
@@ -275,6 +275,7 @@ int htmlAttachment(
 	);
 	char *url = templateURL("../" PATH_ATTACHMENT, path);
 	const char *name = paramGet(part->disposition.params, "filename");
+	if (!name) name = paramGet(part->params, "name");
 	struct Variable vars[] = {
 		{ "url", url },
 		{ "name", (name ? name : "") },