aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-05 22:50:00 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-05 22:50:00 +0200
commit6fb3a2a18591a4c79e91a90282d88cd84554f83c (patch)
treefbd769678cd67f39ac40d40da7fef34aee2ce678 /index.php
parentd28a7ca30fa50845a54b0e21844b20b373b7fd44 (diff)
downloadwallabag-6fb3a2a18591a4c79e91a90282d88cd84554f83c.tar.gz
wallabag-6fb3a2a18591a4c79e91a90282d88cd84554f83c.tar.zst
wallabag-6fb3a2a18591a4c79e91a90282d88cd84554f83c.zip
move xsrf test
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/index.php b/index.php
index 98ada1bd..d0dd4ab5 100644
--- a/index.php
+++ b/index.php
@@ -10,14 +10,6 @@
10 10
11include dirname(__FILE__).'/inc/poche/config.inc.php'; 11include dirname(__FILE__).'/inc/poche/config.inc.php';
12 12
13#XSRF protection with token
14// if (!empty($_POST)) {
15// if (!Session::isToken($_POST['token'])) {
16// die(_('Wrong token'));
17// }
18// unset($_SESSION['tokens']);
19// }
20
21$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER']; 13$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
22$view = Tools::checkVar('view', 'home'); 14$view = Tools::checkVar('view', 'home');
23$action = Tools::checkVar('action'); 15$action = Tools::checkVar('action');