mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-02 16:38:38 +00:00
move xsrf test
This commit is contained in:
parent
d28a7ca30f
commit
6fb3a2a185
2 changed files with 10 additions and 10 deletions
|
@ -10,14 +10,6 @@
|
|||
|
||||
include dirname(__FILE__).'/inc/poche/config.inc.php';
|
||||
|
||||
#XSRF protection with token
|
||||
// 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', 'home');
|
||||
$action = Tools::checkVar('action');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue