X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Fnew_prescription.sh;h=26173afc38e2ec889790ddad103d2668963e07e5;hp=af99cd0457631e87077f26a6d391ba7f2d87591f;hb=5d9f59035a7833cc8e573025762bca22795c6e5b;hpb=18ecf2c0b034e25c418a83ecb1adefb9f3f04cd8
diff --git a/actions/new_prescription.sh b/actions/new_prescription.sh
index af99cd0..26173af 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" <