From 7e0ac1a6b63c01c7c5faab6b12c22ea9f63f29c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Tue, 23 Aug 2016 14:42:53 +0200 Subject: [PATCH] [core] better use of filter_input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 99342025..7ce9d768 100644 --- a/index.php +++ b/index.php @@ -113,8 +113,8 @@ try{ $bridge->setCache($cache); } - $noproxy=filter_input(INPUT_GET,'_noproxy'); - if(defined('PROXY_URL') && PROXY_BYBRIDGE && !empty($noproxy)){ + $noproxy=filter_input(INPUT_GET,'_noproxy',FILTER_VALIDATE_BOOLEAN); + if(defined('PROXY_URL') && PROXY_BYBRIDGE && $noproxy){ $bridge->useProxy=false; } $bridge->loadMetadatas();