]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't show favicon to prevent iteration through subfolders
authorLukas Reschke <lukas@owncloud.com>
Wed, 26 Nov 2014 11:38:26 +0000 (12:38 +0100)
committerLukas Reschke <lukas@owncloud.com>
Wed, 26 Nov 2014 11:38:26 +0000 (12:38 +0100)
The codepath for generating the favicons iterates through subnodes and if one of those nodes is unavailable is throwing a 503 exception. Since these favicons don't have any use except of "making a tool for developers looking nicer" I consider it feasible to remove them.

apps/files/appinfo/remote.php

index 3ba25085bad3a0499091f7f57127256804ca9fdd..26bef966f798e7d7e32ddf5f0a29229ff20cdeb8 100644 (file)
@@ -38,7 +38,7 @@ $server->setBaseUri($baseuri);
 $defaults = new OC_Defaults();
 $server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, $defaults->getName()));
 $server->addPlugin(new \Sabre\DAV\Locks\Plugin($lockBackend));
-$server->addPlugin(new \Sabre\DAV\Browser\Plugin(false)); // Show something in the Browser, but no upload
+$server->addPlugin(new \Sabre\DAV\Browser\Plugin(false, false)); // Show something in the Browser, but no upload
 $server->addPlugin(new OC_Connector_Sabre_FilesPlugin());
 $server->addPlugin(new OC_Connector_Sabre_MaintenancePlugin());
 $server->addPlugin(new OC_Connector_Sabre_ExceptionLoggerPlugin('webdav'));