]> 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:32:01 +0000 (08:32 +0000)
Signed-off-by: Nils Wittenbrink <nilswittenbrink@web.de>
apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php

index 55c352d98bad19d5de3795731110687a8dc70fc5..291c25dbff5cb796613b6275a3d02145993d6898 100644 (file)
@@ -124,7 +124,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'];