projects
/
confetti
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
047067c
)
set file name when offering card file
author
Paul Hänsch
<paul@plutz.net>
Fri, 5 Feb 2021 01:42:06 +0000
(
02:42
+0100)
committer
Paul Hänsch
<paul@plutz.net>
Fri, 5 Feb 2021 01:42:06 +0000
(
02:42
+0100)
cards/export_card.sh
patch
|
blob
|
history
diff --git
a/cards/export_card.sh
b/cards/export_card.sh
index
bd73eb2
..
0918032
100755
(executable)
--- 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"