X-Git-Url: https://git.plutz.net/?p=invoices;a=blobdiff_plain;f=invoices.cgi;h=464d2849ed44d9d4a4247301f0adbd1101a0ed00;hp=76d989a0dffbee3c28ebb490dafcdba04c15d8c3;hb=53de77e6d3528e016290821c5d1186788cf361e3;hpb=61d4c0246fddb3af0cd3287e77814c867f67f80f diff --git a/invoices.cgi b/invoices.cgi index 76d989a..464d284 100755 --- a/invoices.cgi +++ b/invoices.cgi @@ -24,16 +24,7 @@ printf 'Content-Type: text/html; charset=utf-8\r\n\r\n' EOF } -tid(){ - # transaction ID to modify a given file - local file="$1" - { stat -c %F%i%n%N%s%Y "$file" 2>&- - printf %s "$SESSION_ID" - server_key - } | sha256sum | cut -d\ -f1 -} - -info="$(PATH "${PATH_INFO}")" +info="$(PATH "${PATH_INFO#http://*/}")" which git && [ ! -d .git ] && { git init