Merge pull request #3682 from owncloud/disable_proxys_on_sslcert_upload
disable proxys during ssl root cert upload to avoid encryption
This commit is contained in:
commit
40e74b5907
1 changed files with 4 additions and 0 deletions
|
@ -29,8 +29,12 @@ if ($isValid == false) {
|
|||
|
||||
// add the certificate if it could be verified
|
||||
if ( $isValid ) {
|
||||
// disable proxy to prevent multiple fopen calls
|
||||
$proxyStatus = \OC_FileProxy::$enabled;
|
||||
\OC_FileProxy::$enabled = false;
|
||||
$view->file_put_contents($filename, $data);
|
||||
OC_Mount_Config::createCertificateBundle();
|
||||
\OC_FileProxy::$enabled = $proxyStatus;
|
||||
} else {
|
||||
OCP\Util::writeLog('files_external',
|
||||
'Couldn\'t import SSL root certificate ('.$filename.'), allowed formats: PEM and DER',
|
||||
|
|
Loading…
Reference in a new issue