From 752cd4a8ef7bbc8ebd6c481ed890e0d8e46819a8 Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Mon, 2 Jun 2014 18:00:09 +0300 Subject: error reporting level set in E_ALL & ~E_NOTICE by default, can be overriden in config --- index.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 472e0fab..c134b103 100755 --- a/index.php +++ b/index.php @@ -12,6 +12,11 @@ define ('POCHE', '1.7.0'); require 'check_setup.php'; require_once 'inc/poche/global.inc.php'; +# Set error reporting level +if (defined('ERROR_REPORTING')) { + error_reporting(ERROR_REPORTING); +} + # Start session Session::$sessionName = 'poche'; Session::init(); -- cgit v1.2.3 From a13ff95777bfca0b677ec17faa5aa4ffafc9ad1c Mon Sep 17 00:00:00 2001 From: tcitworld Date: Mon, 30 Jun 2014 22:15:55 +0200 Subject: security check --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index c134b103..afacdddc 100755 --- a/index.php +++ b/index.php @@ -13,8 +13,8 @@ require 'check_setup.php'; require_once 'inc/poche/global.inc.php'; # Set error reporting level -if (defined('ERROR_REPORTING')) { - error_reporting(ERROR_REPORTING); +if (defined('ERROR_REPORTING')) { + error_reporting(ERROR_REPORTING); } # Start session @@ -98,7 +98,7 @@ if (isset($_GET['login'])) { } else { $tag_id = (isset($_GET['tag_id']) ? intval($_GET['tag_id']) : 0); - $poche->generateFeeds($_GET['token'], $_GET['user_id'], $tag_id, $_GET['type']); + $poche->generateFeeds($_GET['token'], filter_var($_GET['user_id'],FILTER_SANITIZE_NUMBER_INT), $tag_id, $_GET['type']); } } -- cgit v1.2.3 From c13aac1bc3ad6df31cfec02b943603df507f5274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 5 Jul 2014 15:49:40 +0200 Subject: 1.7.1 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index afacdddc..481841ec 100755 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ * @license http://www.wtfpl.net/ see COPYING file */ -define ('POCHE', '1.7.0'); +define ('POCHE', '1.7.1'); require 'check_setup.php'; require_once 'inc/poche/global.inc.php'; -- cgit v1.2.3