]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix hostname given in Apple config file
authorNils Wittenbrink <nilswittenbrink@web.de>
Fri, 28 Feb 2020 19:17:04 +0000 (20:17 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 11 Mar 2020 08:31:46 +0000 (08:31 +0000)
Signed-off-by: Nils Wittenbrink <nilswittenbrink@web.de>
apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php

index fd0171faf4522644f731e88d51c8f05db2db96e8..0f31dd420b37b9dca7a54d65427a3c58a47411a0 100644 (file)
@@ -125,7 +125,7 @@ class AppleProvisioningPlugin extends ServerPlugin {
                        return false;
                }
 
-               $absoluteURL = $request->getAbsoluteUrl();
+               $absoluteURL = $this->urlGenerator->getBaseUrl();
                $parsedUrl = parse_url($absoluteURL);
                if (isset($parsedUrl['port'])) {
                        $serverPort = (int) $parsedUrl['port'];