X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/blobdiff_plain/ea13ecd5272b130c028b76b91b2a05ea65fd565b..978683b51e7c6c49377b5a9404f4717cfd2f5392:/script.php diff --git a/script.php b/script.php index 5f3bc6f..ae57449 100644 --- a/script.php +++ b/script.php @@ -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; - } 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; } @@ -320,7 +320,7 @@ downloadpage='f.php' if [ "$1" == "send" ]; then if [ ! -f "$2" ]; then - echo "File \"$2\" does not exists." + echo "File \"$2\" does not exist." exit fi