]> source.dussan.org Git - nextcloud-server.git/commitdiff
use defaults to determine webdav realm name
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 27 Nov 2013 13:00:13 +0000 (14:00 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 27 Nov 2013 13:00:13 +0000 (14:00 +0100)
apps/files/appinfo/remote.php

index 6c92cc80b69830bc46fa6b4889a5df5140e0b283..a14441410991d986188c636cd62c1954e4b58b65 100644 (file)
@@ -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());