Disable secure-http automatically when disable-tls is enabled, fixes #9235
parent
2c6a9aba32
commit
28fe3baf9c
|
@ -96,7 +96,8 @@ gitlab.com the domain names must be also specified with the
|
||||||
Defaults to `false`. If set to true all HTTPS URLs will be tried with HTTP
|
Defaults to `false`. If set to true all HTTPS URLs will be tried with HTTP
|
||||||
instead and no network level encryption is performed. Enabling this is a
|
instead and no network level encryption is performed. Enabling this is a
|
||||||
security risk and is NOT recommended. The better way is to enable the
|
security risk and is NOT recommended. The better way is to enable the
|
||||||
php_openssl extension in php.ini.
|
php_openssl extension in php.ini. Enabling this will implicitly disable the
|
||||||
|
`secure-http` option.
|
||||||
|
|
||||||
## secure-http
|
## secure-http
|
||||||
|
|
||||||
|
|
|
@ -328,6 +328,10 @@ class Config
|
||||||
case 'disable-tls':
|
case 'disable-tls':
|
||||||
return $this->config[$key] !== 'false' && (bool) $this->config[$key];
|
return $this->config[$key] !== 'false' && (bool) $this->config[$key];
|
||||||
case 'secure-http':
|
case 'secure-http':
|
||||||
|
if ($this->get('disable-tls') === true) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return $this->config[$key] !== 'false' && (bool) $this->config[$key];
|
return $this->config[$key] !== 'false' && (bool) $this->config[$key];
|
||||||
case 'use-github-api':
|
case 'use-github-api':
|
||||||
return $this->config[$key] !== 'false' && (bool) $this->config[$key];
|
return $this->config[$key] !== 'false' && (bool) $this->config[$key];
|
||||||
|
|
Loading…
Reference in New Issue