aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
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 /inc/poche
parentd28a7ca30fa50845a54b0e21844b20b373b7fd44 (diff)
downloadwallabag-6fb3a2a18591a4c79e91a90282d88cd84554f83c.tar.gz
wallabag-6fb3a2a18591a4c79e91a90282d88cd84554f83c.tar.zst
wallabag-6fb3a2a18591a4c79e91a90282d88cd84554f83c.zip
move xsrf test
Diffstat (limited to 'inc/poche')
-rw-r--r--inc/poche/config.inc.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/inc/poche/config.inc.php b/inc/poche/config.inc.php
index d91a44be..ee0f6616 100644
--- a/inc/poche/config.inc.php
+++ b/inc/poche/config.inc.php
@@ -29,7 +29,6 @@ $storage_type = 'sqlite'; # sqlite, mysql, (file, not yet)
29# /!\ Be careful if you change the lines below /!\ 29# /!\ Be careful if you change the lines below /!\
30require_once './inc/poche/Tools.class.php'; 30require_once './inc/poche/Tools.class.php';
31require_once './inc/poche/Url.class.php'; 31require_once './inc/poche/Url.class.php';
32require_once './inc/3rdparty/Session.class.php';
33require_once './inc/3rdparty/class.messages.php'; 32require_once './inc/3rdparty/class.messages.php';
34require_once './inc/poche/Poche.class.php'; 33require_once './inc/poche/Poche.class.php';
35require_once './inc/3rdparty/Readability.php'; 34require_once './inc/3rdparty/Readability.php';
@@ -39,9 +38,18 @@ require_once './inc/store/' . $storage_type . '.class.php';
39require_once './vendor/autoload.php'; 38require_once './vendor/autoload.php';
40require_once './inc/3rdparty/simple_html_dom.php'; 39require_once './inc/3rdparty/simple_html_dom.php';
41require_once './inc/3rdparty/paginator.php'; 40require_once './inc/3rdparty/paginator.php';
41require_once './inc/3rdparty/Session.class.php';
42 42
43if (DOWNLOAD_PICTURES) { 43if (DOWNLOAD_PICTURES) {
44 require_once './inc/poche/pochePictures.php'; 44 require_once './inc/poche/pochePictures.php';
45} 45}
46 46
47$poche = new Poche($storage_type); \ No newline at end of file 47$poche = new Poche($storage_type);
48
49#XSRF protection with token
50// if (!empty($_POST)) {
51// if (!Session::isToken($_POST['token'])) {
52// die(_('Wrong token'));
53// }
54// unset($_SESSION['tokens']);
55// } \ No newline at end of file