forked from wallabag/wallabag
copy of poche.sqlite
This commit is contained in:
15
index.php
15
index.php
@ -11,16 +11,15 @@
|
||||
include dirname(__FILE__).'/inc/poche/config.inc.php';
|
||||
|
||||
#XSRF protection with token
|
||||
// if (!empty($_POST)) {
|
||||
// if (!Session::isToken($_POST['token'])) {
|
||||
// die(_('Wrong token'));
|
||||
// // TODO remettre le test
|
||||
// }
|
||||
// unset($_SESSION['tokens']);
|
||||
// }
|
||||
if (!empty($_POST)) {
|
||||
if (!Session::isToken($_POST['token'])) {
|
||||
die(_('Wrong token'));
|
||||
}
|
||||
unset($_SESSION['tokens']);
|
||||
}
|
||||
|
||||
$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
|
||||
$view = Tools::checkVar('view');
|
||||
$view = Tools::checkVar('view', 'home');
|
||||
$action = Tools::checkVar('action');
|
||||
$id = Tools::checkVar('id');
|
||||
$_SESSION['sort'] = Tools::checkVar('sort');
|
||||
|
||||
Reference in New Issue
Block a user