PMCORE-651 Web entry data is insecure because the Guest user's session overwrites the one of the user currently logged
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
if (!empty($_POST['form'])) {
|
||||
if (!empty($_POST['form']['buttonContinue'])) {
|
||||
$_SESSION['__WEBENTRYCONTINUE__'] = true;
|
||||
}
|
||||
if (!empty($_POST['form']['buttonLogout'])) {
|
||||
$_SESSION = [];
|
||||
}
|
||||
G::header('Location: ' . $_SERVER['HTTP_REFERER']);
|
||||
}
|
||||
Reference in New Issue
Block a user