From 407c7fab874cbbadae7c0f1f961dee4775599278 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 26 Apr 2020 16:52:48 -0400 Subject: Fall back to Content-Type name parameter for attachments --- export.c | 1 + html.c | 1 + 2 files changed, 2 insertions(+) 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 : "") }, -- cgit 1.4.1 ee homepage link
about summary refs log tree commit diff homepage
path: root/deflateCopy.3 (unfollow)
Commit message (Expand)Author
2018-11-11Add deflatePrime.3June McEnroe
2018-11-11Fix inflate.3 NAME sectionJune McEnroe
2018-11-11Remove symlinksJune McEnroe
2018-11-11Separate out inflateInit.3 and inflateEnd.3June McEnroe
2018-11-11Separate out deflateInit.3 and deflateEnd.3June McEnroe
2018-11-11Separate out deflateGetDictionary.3June McEnroe
2018-11-11Fix trailing whitespaceJune McEnroe
2018-11-11Separate out compressBound.3June McEnroe
2018-11-11Separate out crc32_combine.3June McEnroe
2018-11-11Separate out adler32_combine.3June McEnroe
2018-11-11Add missing .In zlib.hJune McEnroe
2018-11-11Add deflatePending.3June McEnroe
2018-11-11Add deflateBound.3June McEnroe
2018-11-11Add deflateTune.3June McEnroe
2018-11-10Add deflateParams.3June McEnroe
2018-11-10Add deflateReset.3June McEnroe
2018-11-10Add deflateCopy.3June McEnroe
2018-11-10Add deflateSetDictionary.3June McEnroe
2018-11-10Remove initial deflate(3) reference in deflateInit2.3June McEnroe
2018-11-10Remove trailing whitespaceJune McEnroe
2018-11-10Add deflateInit2.3June McEnroe
2018-11-10Refer to deflate(3) for z_streamp typeJune McEnroe
2018-11-10Document z_stream fields in deflate.3June McEnroe
2018-11-10Add inflate.3June McEnroe
2018-11-09Use Pq/Po/Pc moreJune McEnroe
2018-11-09Add FreeBSD MakefileJune McEnroe
2018-11-09Add deflate.3June McEnroe