X Tutup
Skip to content

Commit 7e31c83

Browse files
author
Jan
authored
Merge pull request #38107 from /issues/4241
This solves the issue, while generating a public link ssl check conne…
2 parents f1232a1 + 4c0a375 commit 7e31c83

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

apps/files_sharing/ajax/external.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,6 @@
7171
\OC::$server->getUserSession()->getUser()->getUID()
7272
);
7373

74-
// check for ssl cert
75-
if (\substr($remote, 0, 5) === 'https') {
76-
try {
77-
\OC::$server->getHTTPClientService()->newClient()->get($remote, [
78-
'timeout' => 10,
79-
'connect_timeout' => 10,
80-
])->getBody();
81-
} catch (\Exception $e) {
82-
\OCP\JSON::error(['data' => ['message' => $l->t('Invalid or untrusted SSL certificate')]]);
83-
exit;
84-
}
85-
}
86-
8774
$mount = $externalManager->addShare($remote, $token, $password, $name, $ownerDisplayName, true);
8875

8976
/**

changelog/unreleased/38107

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Bugfix: SSL check when adding a public link to your ownCloud
2+
3+
Prior to this fix, a SSL certificate check was performed when adding a
4+
public link to your ownCloud. As this check was done on the base URL of the
5+
server, it could cause some issues, for example endless redirect loops.
6+
This fix gets rid of the SSL check because the storage-check afterwards
7+
also checks the validity of the server's SSL certificate. This check is
8+
being made on /status.php, thus it likely wont end up in a redirect loop.
9+
10+
https://github.com/owncloud/enterprise/issues/4241
11+
https://github.com/owncloud/core/pull/38107

0 commit comments

Comments
 (0)
X Tutup