From: Nils Wittenbrink Date: Fri, 28 Feb 2020 19:17:04 +0000 (+0100) Subject: Fix hostname given in Apple config file X-Git-Tag: v18.0.4RC1~90^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=372a3ddd507e6c329bb24b6d976ecff60f5b8a1b;p=nextcloud-server.git Fix hostname given in Apple config file Signed-off-by: Nils Wittenbrink --- diff --git a/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php b/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php index fd0171faf45..0f31dd420b3 100644 --- a/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php +++ b/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php @@ -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'];