summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-11-27 14:00:13 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-11-27 14:00:13 +0100
commit63a0348f98e093b3e8e7ba1da7a58a1d00e7593b (patch)
tree9a2d4c4ec6627e23ec8ce463bc808323ebf6ce42
parentc3747e39107cdfe82ca922190b1f79944a4c835c (diff)
downloadnextcloud-server-63a0348f98e093b3e8e7ba1da7a58a1d00e7593b.tar.gz
nextcloud-server-63a0348f98e093b3e8e7ba1da7a58a1d00e7593b.zip
use defaults to determine webdav realm name
-rw-r--r--apps/files/appinfo/remote.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/appinfo/remote.php b/apps/files/appinfo/remote.php
index 6c92cc80b69..a1444141099 100644
--- a/apps/files/appinfo/remote.php
+++ b/apps/files/appinfo/remote.php
@@ -43,7 +43,8 @@ $server->httpRequest = $requestBackend;
$server->setBaseUri($baseuri);
// Load plugins
-$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend, 'ownCloud'));
+$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 OC_Connector_Sabre_QuotaPlugin());