summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--export.c1
-rw-r--r--html.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/export.c b/export.c
index 7a04358..ab77587 100644
--- a/export.c
+++ b/export.c
@@ -155,6 +155,7 @@ static int exportHTMLAttachment(
 		);
 	}
 	const char *name = paramGet(part->disposition.params, "filename");
+	if (!name) name = paramGet(part->params, "name");
 	const char *disposition = part->disposition.type;
 	if (!disposition) disposition = "INLINE";
 
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 : "") },
c11b223dd67a5595394776655&follow=1'>Day 7June McEnroe 2017-12-06Day 6, part 2June McEnroe 2017-12-06Day 6June McEnroe 2017-12-05Day 5, part 2June McEnroe 2017-12-05Day 5June McEnroe 2017-12-04Day 4, part 2June McEnroe That ugly sort map though. 2017-12-04Day 4June McEnroe 2017-12-03Day 3, part 2June McEnroe I am super surprised that worked on the first try. 2017-12-03Day 3, clean upJune McEnroe 2017-12-03Day 3June McEnroe This is fucking awful and I'm angry. 2017-12-02Day 2, part 2June McEnroe 2017-12-02Day 2June McEnroe 2017-12-01Day 1, part 2June McEnroe 2017-12-01Day 1June McEnroe 2017-11-27Move to 2016 directoryJune McEnroe