X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/blobdiff_plain/eae7f48e501c8709a049d291069bc37150ecc1a1..6395a340d3462f5732f07b8f34e9f76173a202d7:/script.php diff --git a/script.php b/script.php index aa8c259..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; }