[core] better use of filter_input
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
0a86d572c2
commit
7e0ac1a6b6
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue