Skip to content
Permalink
Browse files
Merge pull request #74 from Haxatron/main
Update switch.php
  • Loading branch information
patkon committed Oct 14, 2021
2 parents 1d02596 + c24a6cb commit 82788d005ce604e031179271c3a964e8eff96311
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/switch.php
@@ -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']);
}
}
@@ -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';
@@ -538,4 +538,4 @@



?>
?>

0 comments on commit 82788d0

Please sign in to comment.