diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-01-26 16:19:38 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-01-26 16:19:38 +0100 |
commit | d5b61f9afe7edef452fcaebd4192957bb289d699 (patch) | |
tree | 856e4f4951c6be94576d7033ad80ebc440634b0d /apps | |
parent | 836b80919feb3e32ab54d605385c32a5da053cdc (diff) | |
download | nextcloud-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.php | 2 |
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(); |