summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-04-03 08:47:35 +0200
committerGitHub <noreply@github.com>2020-04-03 08:47:35 +0200
commit483e921f3e9b0d32af6879e7d44afc8b5dc63319 (patch)
tree8ffde2198aa9d663d64488a6b183e9b30d1729b3
parenta688f47a2f31ce59c40118f93503d19d268c3802 (diff)
parent3a88ad741df4bae094ece77e32237a94c5411004 (diff)
downloadnextcloud-server-483e921f3e9b0d32af6879e7d44afc8b5dc63319.tar.gz
nextcloud-server-483e921f3e9b0d32af6879e7d44afc8b5dc63319.zip
Merge pull request #20275 from nextcloud/bugfix/noid/publicwebdav-query-application
Query Application class on publicwebdav
-rw-r--r--apps/dav/appinfo/v1/publicwebdav.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php
index e7bd867898e..c50bc134131 100644
--- a/apps/dav/appinfo/v1/publicwebdav.php
+++ b/apps/dav/appinfo/v1/publicwebdav.php
@@ -65,7 +65,7 @@ $filesDropPlugin = new \OCA\DAV\Files\Sharing\FilesDropPlugin();
$server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function (\Sabre\DAV\Server $server) use ($authBackend, $linkCheckPlugin, $filesDropPlugin) {
$isAjax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest');
- $federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
+ $federatedSharingApp = \OC::$server->query(\OCA\FederatedFileSharing\AppInfo\Application::class);
$federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
if ($federatedShareProvider->isOutgoingServer2serverShareEnabled() === false && !$isAjax) {
// this is what is thrown when trying to access a non-existing share