]> git.p6c8.net - jirafeau/pcanterino.git/blobdiff - script.php
Updated CHANGELOG
[jirafeau/pcanterino.git] / script.php
index 5f3bc6f359996bd866a89a5b410b9fd8921b05e2..ae574494bf2165f2698c96b06b4f28773be762db 100644 (file)
@@ -74,7 +74,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES)
             !jirafeau_challenge_upload($cfg, get_ip_address($cfg), $_POST['upload_password'])) {
             echo 'Error 3: Invalid password';
             exit;
             !jirafeau_challenge_upload($cfg, get_ip_address($cfg), $_POST['upload_password'])) {
             echo 'Error 3: Invalid password';
             exit;
-        } elseif (!jirafeau_challenge_upload($cfg, get_ip_address($cfg), null)) {
+        } elseif (!isset($_POST['upload_password']) && !jirafeau_challenge_upload($cfg, get_ip_address($cfg), null)) {
             echo 'Error 2: No password nor allowed IP';
             exit;
         }
             echo 'Error 2: No password nor allowed IP';
             exit;
         }
@@ -320,7 +320,7 @@ downloadpage='f.php'
 
 if [ "$1" == "send" ]; then
     if [ ! -f "$2" ]; then
 
 if [ "$1" == "send" ]; then
     if [ ! -f "$2" ]; then
-        echo "File \"$2\" does not exists."
+        echo "File \"$2\" does not exist."
         exit
     fi
 
         exit
     fi
 

patrick-canterino.de