X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Fnew_prescription.sh;h=b777cec0d948957e047622bbba04421bae31b9a6;hp=af99cd0457631e87077f26a6d391ba7f2d87591f;hb=afdc06688cc51a168011da48adbafcba238d3ae1;hpb=18ecf2c0b034e25c418a83ecb1adefb9f3f04cd8 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" <