]> git.p6c8.net - jirafeau_mojo42.git/commitdiff
fix #178 "Delete via API does not work" 90/head
authorSven Dickert <wegegeld@web.de>
Wed, 13 Jan 2021 10:31:34 +0000 (11:31 +0100)
committerJérôme Jutteau <jerome@jutteau.fr>
Sun, 31 Jan 2021 17:40:26 +0000 (17:40 +0000)
script.php

index 434a2c33bae3d50938a1b091973ddae370d9497e..d31ce78ec7d708010b6fb952cc81b48e452f7bf4 100644 (file)
@@ -383,7 +383,7 @@ if [ "$1" == "send" ]; then
         echo "    ${0} get ${url}${apipage}?h=$code [PASSWORD}"
     fi
     echo "Delete via API:"
         echo "    ${0} get ${url}${apipage}?h=$code [PASSWORD}"
     fi
     echo "Delete via API:"
-    echo "    ${0} delete ${url}${downloadpage}?h=$code&d=$del_code"
+    echo "    ${0} delete \"${url}${downloadpage}?h=$code&d=$del_code\""
 
 elif [ "$1" == "get" ]; then
     if [ -z "$password" ]; then
 
 elif [ "$1" == "get" ]; then
     if [ -z "$password" ]; then
@@ -392,7 +392,7 @@ elif [ "$1" == "get" ]; then
         $curl $proxy -OJ -X POST -F key=$password "$2"
     fi
 elif [ "$1" == "delete" ]; then
         $curl $proxy -OJ -X POST -F key=$password "$2"
     fi
 elif [ "$1" == "delete" ]; then
-    $curl $proxy "$2"
+    $curl $proxy "$2" --data-raw "do_delete=1%2F" | grep "div class" |sed -e "s/<[^>]\+>//g"
 fi
 <?php
     } else {
 fi
 <?php
     } else {

patrick-canterino.de