summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-01-26 16:19:38 +0100
committerVincent Petry <pvince81@owncloud.com>2015-01-26 16:19:38 +0100
commitd5b61f9afe7edef452fcaebd4192957bb289d699 (patch)
tree856e4f4951c6be94576d7033ad80ebc440634b0d /apps
parent836b80919feb3e32ab54d605385c32a5da053cdc (diff)
downloadnextcloud-server-d5b61f9afe7edef452fcaebd4192957bb289d699.tar.gz
nextcloud-server-d5b61f9afe7edef452fcaebd4192957bb289d699.zip
Prevent double slash in shareinfo request URL
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/external/storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 0d41176e45a..b3978af6852 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -194,7 +194,7 @@ class Storage extends DAV implements ISharedStorage {
$remote = $this->getRemote();
$token = $this->getToken();
$password = $this->getPassword();
- $url = $remote . '/index.php/apps/files_sharing/shareinfo?t=' . $token;
+ $url = rtrim($remote, '/') . '/index.php/apps/files_sharing/shareinfo?t=' . $token;
$ch = curl_init();