mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
view of an article
This commit is contained in:
parent
63c35580c7
commit
2a1791a4b1
9 changed files with 14 additions and 9 deletions
14
index.php
14
index.php
|
@ -11,13 +11,13 @@
|
|||
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'));
|
||||
// // TODO remettre le test
|
||||
// }
|
||||
// unset($_SESSION['tokens']);
|
||||
// }
|
||||
|
||||
$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
|
||||
$view = Tools::checkVar('view');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue