diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/CapabilitiesService.php | 2 | ||||
-rw-r--r-- | lib/WOPI/DiscoveryManager.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/CapabilitiesService.php b/lib/Service/CapabilitiesService.php index 9d6583b0..981b3640 100644 --- a/lib/Service/CapabilitiesService.php +++ b/lib/Service/CapabilitiesService.php @@ -89,7 +89,7 @@ class CapabilitiesService { if ($remoteHost === '') { return []; } - $capabilitiesEndpoint = $remoteHost . '/hosting/capabilities'; + $capabilitiesEndpoint = rtrim($remoteHost, '/') . '/hosting/capabilities'; $client = $this->clientService->newClient(); $options = ['timeout' => 45, 'nextcloud' => ['allow_local_address' => true]]; diff --git a/lib/WOPI/DiscoveryManager.php b/lib/WOPI/DiscoveryManager.php index d8d70b58..bcc103d8 100644 --- a/lib/WOPI/DiscoveryManager.php +++ b/lib/WOPI/DiscoveryManager.php @@ -68,7 +68,7 @@ class DiscoveryManager { */ public function fetchFromRemote() { $remoteHost = $this->config->getAppValue('richdocuments', 'wopi_url'); - $wopiDiscovery = $remoteHost . '/hosting/discovery'; + $wopiDiscovery = rtrim($remoteHost, '/') . '/hosting/discovery'; $client = $this->clientService->newClient(); $options = ['timeout' => 45, 'nextcloud' => ['allow_local_address' => true]]; |