X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=actions%2Fnew_prescription.sh;h=b777cec0d948957e047622bbba04421bae31b9a6;hb=9f84cd01fc17ac387f4f5e5787cd366135cd1916;hp=af99cd0457631e87077f26a6d391ba7f2d87591f;hpb=18ecf2c0b034e25c418a83ecb1adefb9f3f04cd8;p=lobster
diff --git a/actions/new_prescription.sh b/actions/new_prescription.sh
index af99cd0..b777cec 100755
--- a/actions/new_prescription.sh
+++ b/actions/new_prescription.sh
@@ -17,17 +17,22 @@
# You should have received a copy of the GNU Affero General Public License
# along with Confetti. If not, see .
-cgi_post
cgi_refdata
-client="${_POST[client]}"
+client="${_POST[client]:-${_GET[client]}}"
uid=$(uuidgenerator)
prescription="${client%.vcf}.${uid}.mpx"
+cardfile="$_DATA/vcard/$client"
tempfile="$_DATA/temp/$prescription"
cat >"$tempfile" <