diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-01-22 13:32:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 13:32:24 +0300 |
commit | 69a323df0582061fa5d94f9a367e890fe8f8b21b (patch) | |
tree | ff8760bd20c44d16bd4bc3120839476dc0697e28 /lib | |
parent | 04c1e8516938b1522cf4537b8e85a506b51ec5c0 (diff) | |
parent | a89f9bfc443876be527a0ed2b22bfbf315f54f19 (diff) |
Merge pull request #1305 from nextcloud/bugfix/federated-url
Properly trim trailing slashes from the remote url
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/FederationService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/FederationService.php b/lib/Service/FederationService.php index 2a06ce5a..771bb183 100644 --- a/lib/Service/FederationService.php +++ b/lib/Service/FederationService.php @@ -196,7 +196,7 @@ class FederationService { } else { $wopi = $this->tokenManager->getRemoteTokenFromDirect($item, $direct->getUid()); } - $url = rtrim($remote, '') . '/index.php/apps/richdocuments/remote?shareToken=' . $item->getStorage()->getToken() . + $url = rtrim($remote, '/') . '/index.php/apps/richdocuments/remote?shareToken=' . $item->getStorage()->getToken() . '&remoteServer=' . $wopi->getServerHost() . '&remoteServerToken=' . $wopi->getToken(); if ($item->getInternalPath() !== '') { |