From 2a1791a4b1c319fc5bbc286d0bc94827fe1feec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 22:51:12 +0200 Subject: view of an article --- index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 381b8ccc..94c72a27 100644 --- a/index.php +++ b/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'); -- cgit v1.2.3