Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #74 from Haxatron/main
Browse files Browse the repository at this point in the history
Update switch.php
  • Loading branch information
patkon committed Oct 14, 2021
2 parents 1d02596 + c24a6cb commit 82788d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/switch.php
Expand Up @@ -152,7 +152,7 @@
*/

if(isset($_POST['page_psw']) && $_POST['page_psw'] != '') {
if(md5($_POST['page_psw']) == $page_psw) {
if(md5($_POST['page_psw']) === $page_psw) {
$_SESSION['page_psw'] = md5($_POST['page_psw']);
}
}
Expand All @@ -161,7 +161,7 @@
unset($_SESSION['page_psw']);
}

if($page_psw != '' && $_SESSION['page_psw'] != $page_psw) {
if($page_psw !== '' && $_SESSION['page_psw'] !== $page_psw) {
$formaction = FC_INC_DIR . '/'.$fct_slug;
$page_title = 'Password Protected Page';
$page_meta_robots = 'noindex';
Expand Down Expand Up @@ -538,4 +538,4 @@



?>
?>

0 comments on commit 82788d0

Please sign in to comment.