[Core] Verify the presence of the array keys before accessing them.
Fixes #588
This commit is contained in:
parent
6f66e6d9be
commit
98b0f0f8ba
1 changed files with 3 additions and 3 deletions
|
@ -132,8 +132,8 @@ try {
|
||||||
$whitelist_selection = array_map('strtolower', $whitelist_selection);
|
$whitelist_selection = array_map('strtolower', $whitelist_selection);
|
||||||
}
|
}
|
||||||
|
|
||||||
$action = $params['action'];
|
$action = array_key_exists('action', $params) ? $params['action'] : null;
|
||||||
$bridge = $params['bridge'];
|
$bridge = array_key_exists('bridge', $params) ? $params['bridge'] : null;
|
||||||
|
|
||||||
if($action === 'display' && !empty($bridge)) {
|
if($action === 'display' && !empty($bridge)) {
|
||||||
// DEPRECATED: 'nameBridge' scheme is replaced by 'name' in bridge parameter values
|
// DEPRECATED: 'nameBridge' scheme is replaced by 'name' in bridge parameter values
|
||||||
|
@ -160,7 +160,7 @@ try {
|
||||||
// Data retrieval
|
// Data retrieval
|
||||||
$bridge = Bridge::create($bridge);
|
$bridge = Bridge::create($bridge);
|
||||||
|
|
||||||
$noproxy = filter_var($params['_noproxy'], FILTER_VALIDATE_BOOLEAN);
|
$noproxy = array_key_exists('_noproxy', $params) && filter_var($params['_noproxy'], FILTER_VALIDATE_BOOLEAN);
|
||||||
if(defined('PROXY_URL') && PROXY_BYBRIDGE && $noproxy) {
|
if(defined('PROXY_URL') && PROXY_BYBRIDGE && $noproxy) {
|
||||||
define('NOPROXY', true);
|
define('NOPROXY', true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue