summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-05-19 10:54:11 +0200
committerJoas Schilling <nickvergessen@gmx.de>2015-05-19 10:54:11 +0200
commit9e0cb4460e82a59f238b6aed0e171954ecbda2de (patch)
tree931ef6d7ec63f498dafce685b102b749abd2dca6 /apps
parent68a593a667099dd6e3fde0785b933088407f1d53 (diff)
parente0a136d34467de2d76494abfd6f9025d909e051b (diff)
downloadnextcloud-server-9e0cb4460e82a59f238b6aed0e171954ecbda2de.tar.gz
nextcloud-server-9e0cb4460e82a59f238b6aed0e171954ecbda2de.zip
Merge pull request #16354 from owncloud/remove-browser-from-publicwebdav
Show a empty response for GET on non-files instead of the Browser Plugin
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/publicwebdav.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/publicwebdav.php b/apps/files_sharing/publicwebdav.php
index 3be464c64f0..c2a16e933b3 100644
--- a/apps/files_sharing/publicwebdav.php
+++ b/apps/files_sharing/publicwebdav.php
@@ -48,7 +48,8 @@ $server->setBaseUri($baseuri);
// Load plugins
$defaults = new OC_Defaults();
$server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, $defaults->getName()));
-$server->addPlugin(new \Sabre\DAV\Browser\Plugin(false)); // Show something in the Browser, but no upload
+// 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());
$server->addPlugin(new \OC\Connector\Sabre\FilesPlugin($objectTree));
$server->addPlugin(new \OC\Connector\Sabre\MaintenancePlugin());
$server->addPlugin(new \OC\Connector\Sabre\ExceptionLoggerPlugin('webdav', \OC::$server->getLogger()));