From: Paul Hänsch Date: Fri, 5 Feb 2021 01:42:06 +0000 (+0100) Subject: set file name when offering card file X-Git-Url: https://git.plutz.net/?p=confetti;a=commitdiff_plain;h=c69f5c4cdef7541ebef3938d9f9009b1494bf4f3 set file name when offering card file --- 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"