Skip to content

Make it possible for storage backend to find newer OCM Providers #28

@mickenordin

Description

@mickenordin
diff --git a/apps/files_sharing/lib/External/Storage.php b/apps/files_sharing/lib/External/Storage.php
index a9781b91a6c..509b23f68b4 100644
--- a/apps/files_sharing/lib/External/Storage.php
+++ b/apps/files_sharing/lib/External/Storage.php
@@ -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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions