security check

This commit is contained in:
tcitworld 2014-06-30 22:15:55 +02:00
parent cdda041a90
commit a13ff95777
1 changed files with 3 additions and 3 deletions

View File

@ -13,8 +13,8 @@ require 'check_setup.php';
require_once 'inc/poche/global.inc.php'; require_once 'inc/poche/global.inc.php';
# Set error reporting level # Set error reporting level
if (defined('ERROR_REPORTING')) { if (defined('ERROR_REPORTING')) {
error_reporting(ERROR_REPORTING); error_reporting(ERROR_REPORTING);
} }
# Start session # Start session
@ -98,7 +98,7 @@ if (isset($_GET['login'])) {
} }
else { else {
$tag_id = (isset($_GET['tag_id']) ? intval($_GET['tag_id']) : 0); $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']);
} }
} }