mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Checking token on adding and deleting favorites
This commit is contained in:
parent
5262b3f447
commit
475fe47984
3 changed files with 11 additions and 6 deletions
|
@ -7,10 +7,9 @@ session_start();
|
|||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check token
|
||||
// if ((!isset($_POST['token'])) || ($_SESSION['token'] != $_POST['token'])) {
|
||||
// header('location: /login/');
|
||||
// exit();
|
||||
// }
|
||||
if ((!isset($_REQUEST['token'])) || ($_SESSION['token'] != $_REQUEST['token'])) {
|
||||
die("Wrong token");
|
||||
}
|
||||
|
||||
// Protect input
|
||||
$v_section = escapeshellarg($_REQUEST['v_section']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue