From 0d64be15de12cd949fc9b9d2b8352a1815da965a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 18 Sep 2013 09:25:28 +0200 Subject: remove csrf check --- inc/poche/config.inc.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'inc/poche/config.inc.php') diff --git a/inc/poche/config.inc.php b/inc/poche/config.inc.php index 9247c292..aaa26af8 100755 --- a/inc/poche/config.inc.php +++ b/inc/poche/config.inc.php @@ -48,12 +48,4 @@ if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timez date_default_timezone_set('UTC'); } -$poche = new Poche(); - -#XSRF protection with token -if (!empty($_POST)) { - if (!Session::isToken($_POST['token'])) { - die(_('Wrong token')); - } - unset($_SESSION['tokens']); -} \ No newline at end of file +$poche = new Poche(); \ No newline at end of file -- cgit v1.2.3