tpy="$(POST id)"
tpyfile="$_DATA/therapies/${tpy}.tpy"
-tempfile="$_DATA/temp/${tpy}.tpy"
+tempfile="$_DATA/temp/${tpy}.$$.tpy"
if [ "$(POST tid)" != "$(transid "$tpyfile")" ]; then
if [ "$(POST autosubmit)" = "true" ]; then
msg="$(transid "$tpyfile")"
printf 'HTTP/1.1 200 OK\r\nContent-Length: %i\r\n\r\n%s' \
"${#msg}" "${msg}"
+elif [ "$(POST vcfreturn)" ]; then
+ REDIRECT "/cards/#${tpy%.*}.vcf"
else
REDIRECT "/therapies/${tpy%.*}/${tpy#*.}"
fi