diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-04-24 18:21:10 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-04-24 18:21:10 +0200 |
commit | b9df932e3cf6a47cf9482672370925e7f7fd6fac (patch) | |
tree | a15d128e6cf75fc36cf79c65104376586a6fa6d2 /apps/files | |
parent | f63a0c99a4cf0eed08e9022d8e8ed7146b94bff6 (diff) | |
parent | ab9ea97d3af62fd1c9c1f813b84e5c45a585a8d8 (diff) | |
download | nextcloud-server-b9df932e3cf6a47cf9482672370925e7f7fd6fac.tar.gz nextcloud-server-b9df932e3cf6a47cf9482672370925e7f7fd6fac.zip |
Merge pull request #15683 from owncloud/block-legacy-clients
Block old legacy clients
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/appinfo/remote.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/appinfo/remote.php b/apps/files/appinfo/remote.php index 1e54fc10efa..b8dc68f1f81 100644 --- a/apps/files/appinfo/remote.php +++ b/apps/files/appinfo/remote.php @@ -43,6 +43,7 @@ $server->setBaseUri($baseuri); // Load plugins $defaults = new OC_Defaults(); +$server->addPlugin(new \OC\Connector\Sabre\BlockLegacyClientPlugin(\OC::$server->getConfig())); $server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, $defaults->getName())); // FIXME: The following line is a workaround for legacy components relying on being able to send a GET to / $server->addPlugin(new \OC\Connector\Sabre\DummyGetResponsePlugin()); |