X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/blobdiff_plain/21301c45dfc7b95be8c0f5fd32674aa246d06cab..9611fc95d7ee0f0f0fa5bc7835b07634fa09dd25:/index.php diff --git a/index.php b/index.php index 435e059..4881c51 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,9 @@ require(JIRAFEAU_ROOT . 'lib/settings.php'); require(JIRAFEAU_ROOT . 'lib/functions.php'); require(JIRAFEAU_ROOT . 'lib/lang.php'); -if ($cfg['download_password_requirement'] === "generated") { +$download_pass = null; + +if ($cfg['download_password_requirement'] === 'generated') { $download_pass = jirafeau_gen_download_pass($cfg['download_password_gen_len'], $cfg['download_password_gen_chars']); } @@ -102,7 +104,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { ?> - +