1
0
Fork 0

Avoid accessing undefined indices, fixes #9654

pull/9662/head
Jordi Boggiano 2021-02-01 12:55:55 +01:00
parent cee34b06b4
commit 4ade9bd960
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -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 {