diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-07-15 11:49:24 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-07-15 11:49:24 +0200 |
commit | 0f6273cdb8c77436593782d42f271fddc7a7875d (patch) | |
tree | cd6e0959768f5fac7eac054572a97b3a30674af2 /index.php | |
parent | a9f5e572dde4f986a498d2fbe92a38a1b22f9595 (diff) | |
parent | 26452f891f3ba75f2636733dbfe943535636df06 (diff) | |
download | wallabag-0f6273cdb8c77436593782d42f271fddc7a7875d.tar.gz wallabag-0f6273cdb8c77436593782d42f271fddc7a7875d.tar.zst wallabag-0f6273cdb8c77436593782d42f271fddc7a7875d.zip |
Merge pull request #761 from wallabag/dev1.7.1
1.7.1
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -8,10 +8,15 @@ | |||
8 | * @license http://www.wtfpl.net/ see COPYING file | 8 | * @license http://www.wtfpl.net/ see COPYING file |
9 | */ | 9 | */ |
10 | 10 | ||
11 | define ('POCHE', '1.7.0'); | 11 | define ('POCHE', '1.7.1'); |
12 | require 'check_setup.php'; | 12 | require 'check_setup.php'; |
13 | require_once 'inc/poche/global.inc.php'; | 13 | require_once 'inc/poche/global.inc.php'; |
14 | 14 | ||
15 | # Set error reporting level | ||
16 | if (defined('ERROR_REPORTING')) { | ||
17 | error_reporting(ERROR_REPORTING); | ||
18 | } | ||
19 | |||
15 | # Start session | 20 | # Start session |
16 | Session::$sessionName = 'poche'; | 21 | Session::$sessionName = 'poche'; |
17 | Session::init(); | 22 | Session::init(); |
@@ -93,7 +98,7 @@ if (isset($_GET['login'])) { | |||
93 | } | 98 | } |
94 | else { | 99 | else { |
95 | $tag_id = (isset($_GET['tag_id']) ? intval($_GET['tag_id']) : 0); | 100 | $tag_id = (isset($_GET['tag_id']) ? intval($_GET['tag_id']) : 0); |
96 | $poche->generateFeeds($_GET['token'], $_GET['user_id'], $tag_id, $_GET['type']); | 101 | $poche->generateFeeds($_GET['token'], filter_var($_GET['user_id'],FILTER_SANITIZE_NUMBER_INT), $tag_id, $_GET['type']); |
97 | } | 102 | } |
98 | } | 103 | } |
99 | 104 | ||