X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fnew_prescription.sh;h=26173afc38e2ec889790ddad103d2668963e07e5;hb=322d57cdb814fe095dec3bb579e0aaa9db94e9c2;hp=af99cd0457631e87077f26a6d391ba7f2d87591f;hpb=18ecf2c0b034e25c418a83ecb1adefb9f3f04cd8;p=lobster
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" <