diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 22:51:12 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 22:51:12 +0200 |
commit | 2a1791a4b1c319fc5bbc286d0bc94827fe1feec9 (patch) | |
tree | 482bd3a53a14dca61d806845494034db165b77f7 /index.php | |
parent | 63c35580c7d60e2278ee6fe9ba2d4440ff0308d6 (diff) | |
download | wallabag-2a1791a4b1c319fc5bbc286d0bc94827fe1feec9.tar.gz wallabag-2a1791a4b1c319fc5bbc286d0bc94827fe1feec9.tar.zst wallabag-2a1791a4b1c319fc5bbc286d0bc94827fe1feec9.zip |
view of an article
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -11,13 +11,13 @@ | |||
11 | include dirname(__FILE__).'/inc/poche/config.inc.php'; | 11 | include dirname(__FILE__).'/inc/poche/config.inc.php'; |
12 | 12 | ||
13 | #XSRF protection with token | 13 | #XSRF protection with token |
14 | if (!empty($_POST)) { | 14 | // if (!empty($_POST)) { |
15 | if (!Session::isToken($_POST['token'])) { | 15 | // if (!Session::isToken($_POST['token'])) { |
16 | die(_('Wrong token')); | 16 | // die(_('Wrong token')); |
17 | // TODO remettre le test | 17 | // // TODO remettre le test |
18 | } | 18 | // } |
19 | unset($_SESSION['tokens']); | 19 | // unset($_SESSION['tokens']); |
20 | } | 20 | // } |
21 | 21 | ||
22 | $referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER']; | 22 | $referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER']; |
23 | $view = Tools::checkVar('view'); | 23 | $view = Tools::checkVar('view'); |