Avoid accessing undefined indices, fixes #9654

main
Jordi Boggiano 3 years ago
parent cee34b06b4
commit 4ade9bd960
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -87,7 +87,7 @@ class ProxyManager
$options = array();
$formattedProxyUrl = '';
if ($this->hasProxy && $this->fullProxy[$scheme]) {
if ($this->hasProxy && in_array($scheme, array('http', 'https'), true) && $this->fullProxy[$scheme]) {
if ($this->noProxy($requestUrl)) {
$formattedProxyUrl = 'excluded by no_proxy';
} else {

Loading…
Cancel
Save