X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/d1ee60f610d6208a6acba1548bd18de774c7de79..c019221848e50ba97456bcf0ad7e4e7d13dd4110:/admin.php?ds=sidebyside diff --git a/admin.php b/admin.php index cad427c..a0ae04b 100644 --- a/admin.php +++ b/admin.php @@ -53,7 +53,7 @@ if (isset ($_POST['action']) && (strcmp ($_POST['action'], 'logout') == 0)) /* Check classic admin password authentification. */ if (isset ($_POST['admin_password']) && empty($cfg['admin_http_auth_user'])) { - if (strcmp ($cfg['admin_password'], $_POST['admin_password']) == 0) + if ($cfg['admin_password'] === $_POST['admin_password']) $_SESSION['admin_auth'] = true; else { @@ -128,8 +128,9 @@ if (!(isset ($_POST['action']) && strcmp ($_POST['action'], 'download') == 0)) { require (JIRAFEAU_ROOT . 'lib/template/header.php'); ?>