]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
security check
authortcitworld <tcit@tcit.fr>
Mon, 30 Jun 2014 20:15:55 +0000 (22:15 +0200)
committertcitworld <tcit@tcit.fr>
Mon, 30 Jun 2014 20:15:55 +0000 (22:15 +0200)
index.php

index c134b1035275f9eb1a2fb24e2e019e925a678d7f..afacdddc00e28ba07303e99fd409d9a0dd103637 100755 (executable)
--- 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')) {\r
-       error_reporting(ERROR_REPORTING);\r
+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']);
     }
 }