From 34f66a65c3f20c08b25e5960c1c0e2d01bf2404f Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 8 Apr 2015 13:17:46 +0200 Subject: [PATCH] Register maintenance mode plugin Prevents remote.php to be used in maintenance mode --- appinfo/remote.php | 1 + 1 file changed, 1 insertion(+) diff --git a/appinfo/remote.php b/appinfo/remote.php index d88090c3..eb840e0c 100644 --- a/appinfo/remote.php +++ b/appinfo/remote.php @@ -68,6 +68,7 @@ $server = new \Sabre\DAV\Server($nodes); $server->httpRequest->setUrl(\OC::$server->getRequest()->getRequestUri()); $server->setBaseUri($baseuri); // Add plugins +$server->addPlugin(new \OC\Connector\Sabre\MaintenancePlugin()); $server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, 'ownCloud')); $server->addPlugin(new OCA\Contacts\CardDAV\Plugin()); $server->addPlugin(new \Sabre\DAVACL\Plugin());