diff options
-rw-r--r-- | apps/files_external/ajax/addRootCertificate.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_external/ajax/addRootCertificate.php b/apps/files_external/ajax/addRootCertificate.php index fcd3a617ada..2118ea54021 100644 --- a/apps/files_external/ajax/addRootCertificate.php +++ b/apps/files_external/ajax/addRootCertificate.php @@ -27,6 +27,12 @@ if ($isValid == false) { $isValid = openssl_pkey_get_public($data); } +// If string starts with "file://" ignore the certificate +$query = 'file://'; +if(strtolower(substr($data, 0, strlen($query))) === $query) { + $isValid = false; +} + // add the certificate if it could be verified if ( $isValid ) { // disable proxy to prevent multiple fopen calls |