diff options
-rw-r--r--[-rwxr-xr-x] | inc/3rdparty/class.messages.php | 0 | ||||
-rwxr-xr-x | inc/poche/config.inc.php.new | 2 | ||||
-rw-r--r-- | inc/poche/global.inc.php | 10 |
3 files changed, 2 insertions, 10 deletions
diff --git a/inc/3rdparty/class.messages.php b/inc/3rdparty/class.messages.php index e60bd3a1..e60bd3a1 100755..100644 --- a/inc/3rdparty/class.messages.php +++ b/inc/3rdparty/class.messages.php | |||
diff --git a/inc/poche/config.inc.php.new b/inc/poche/config.inc.php.new index 5c304d14..48cc5783 100755 --- a/inc/poche/config.inc.php.new +++ b/inc/poche/config.inc.php.new | |||
@@ -3,7 +3,7 @@ | |||
3 | * poche, a read it later open source system | 3 | * poche, a read it later open source system |
4 | * | 4 | * |
5 | * @category poche | 5 | * @category poche |
6 | * @author Nicolas Lœuillet <nicolas@loeuillet.org> | 6 | * @author Nicolas Lœuillet <support@inthepoche.com> |
7 | * @copyright 2013 | 7 | * @copyright 2013 |
8 | * @license http://www.wtfpl.net/ see COPYING file | 8 | * @license http://www.wtfpl.net/ see COPYING file |
9 | */ | 9 | */ |
diff --git a/inc/poche/global.inc.php b/inc/poche/global.inc.php index 2437d065..65a026a7 100644 --- a/inc/poche/global.inc.php +++ b/inc/poche/global.inc.php | |||
@@ -3,7 +3,7 @@ | |||
3 | * poche, a read it later open source system | 3 | * poche, a read it later open source system |
4 | * | 4 | * |
5 | * @category poche | 5 | * @category poche |
6 | * @author Nicolas Lœuillet <nicolas@loeuillet.org> | 6 | * @author Nicolas Lœuillet <support@inthepoche.com> |
7 | * @copyright 2013 | 7 | * @copyright 2013 |
8 | * @license http://www.wtfpl.net/ see COPYING file | 8 | * @license http://www.wtfpl.net/ see COPYING file |
9 | */ | 9 | */ |
@@ -61,12 +61,4 @@ if (Poche::$configFileAvailable && DOWNLOAD_PICTURES) { | |||
61 | 61 | ||
62 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { | 62 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { |
63 | date_default_timezone_set('UTC'); | 63 | date_default_timezone_set('UTC'); |
64 | } | ||
65 | |||
66 | #XSRF protection with token | ||
67 | if (!empty($_POST)) { | ||
68 | if (!Session::isToken($_POST['token'])) { | ||
69 | die(_('Wrong token')); | ||
70 | } | ||
71 | unset($_SESSION['token']); | ||
72 | } \ No newline at end of file | 64 | } \ No newline at end of file |