aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php
diff options
context:
space:
mode:
authorNils Wittenbrink <nilswittenbrink@web.de>2020-02-28 20:17:04 +0100
committerNils Wittenbrink <nilswittenbrink@web.de>2020-02-28 20:17:04 +0100
commit4725fb9c1a5b2b4cfdf86dacdd6617a6aec3ee5e (patch)
tree828b36f5543824907ac0d38f8d70e60e176819dd /apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php
parent0cb00912ecfec0ee5434cbc45c851f3030edab41 (diff)
downloadnextcloud-server-4725fb9c1a5b2b4cfdf86dacdd6617a6aec3ee5e.tar.gz
nextcloud-server-4725fb9c1a5b2b4cfdf86dacdd6617a6aec3ee5e.zip
Fix hostname given in Apple config file
Signed-off-by: Nils Wittenbrink <nilswittenbrink@web.de>
Diffstat (limited to 'apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php')
-rw-r--r--apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php2
1 files changed, 1 insertions, 1 deletions
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'];