]> git.plutz.net Git - invoices/blobdiff - invoices.cgi
allow use in fake proxy, replace tid function with new equivalent from library
[invoices] / invoices.cgi
index 76d989a0dffbee3c28ebb490dafcdba04c15d8c3..464d2849ed44d9d4a4247301f0adbd1101a0ed00 100755 (executable)
@@ -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