X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=afacdddc00e28ba07303e99fd409d9a0dd103637;hb=a13ff95777bfca0b677ec17faa5aa4ffafc9ad1c;hp=79838ed915b1731434f5a26453a110bce87545e6;hpb=87090d8ae7582708d20f3c09fb37d780af860bcd;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php index 79838ed9..afacdddc 100755 --- a/index.php +++ b/index.php @@ -8,10 +8,15 @@ * @license http://www.wtfpl.net/ see COPYING file */ -define ('POCHE', '1.6.1'); +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(); @@ -93,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']); } }