diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-01-07 11:05:03 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-01-07 11:05:03 +0300 |
commit | a89f9bfc443876be527a0ed2b22bfbf315f54f19 (patch) | |
tree | 2e60c148204a2888558dc584ad99eab2b9c76441 /lib | |
parent | a99cb9e46ad1c570a600d2c695302a500fec1f50 (diff) |
Properly trim trailing slashes from the remote url
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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() !== '') { |