1
0
Fork 0
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:
Nicolas Lœuillet 2013-08-04 22:51:12 +02:00
parent 63c35580c7
commit 2a1791a4b1
9 changed files with 14 additions and 9 deletions

View file

@ -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');