From c69f5c4cdef7541ebef3938d9f9009b1494bf4f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 5 Feb 2021 02:42:06 +0100 Subject: [PATCH] set file name when offering card file --- cards/export_card.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cards/export_card.sh b/cards/export_card.sh index bd73eb2..0918032 100755 --- a/cards/export_card.sh +++ b/cards/export_card.sh @@ -20,5 +20,9 @@ card="$(GET card |PATH)" cardfile="$_DATA/vcard/${card##*/}" +. $_EXEC/pdiread.sh . $_EXEC/cgilite/file.sh + +printf 'Content-Disposition: inline; filename="%s.vcf"\r\n' "$(pdi_value "$(pdi_load "$cardfile")" FN)" + FILE "$cardfile" "text/vcard; charset=utf-8" -- 2.39.2