mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(ocm): probe standardized .well-known endpoint
- Add `.well-known/ocm` to remote endpoint discovery checks. - Improves compatibility with newer OCM deployments when probing remote servers. Signed-off-by: Micke Nordin <kano@sunet.se>
This commit is contained in:
parent
4174c580b3
commit
111fa240bc
1 changed files with 1 additions and 0 deletions
1
apps/files_sharing/lib/External/Storage.php
vendored
1
apps/files_sharing/lib/External/Storage.php
vendored
|
|
@ -238,6 +238,7 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage,
|
|||
try {
|
||||
return $this->testRemoteUrl($this->getRemote() . '/ocm-provider/index.php')
|
||||
|| $this->testRemoteUrl($this->getRemote() . '/ocm-provider/')
|
||||
|| $this->testRemoteUrl($this->getRemote() . '/.well-known/ocm')
|
||||
|| $this->testRemoteUrl($this->getRemote() . '/status.php');
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue