]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevent double slash in shareinfo request URL
authorVincent Petry <pvince81@owncloud.com>
Mon, 26 Jan 2015 15:19:38 +0000 (16:19 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 26 Jan 2015 15:19:38 +0000 (16:19 +0100)
apps/files_sharing/lib/external/storage.php

index 0d41176e45a86d2db08056e7ceca03261a78ceb9..b3978af68522d2c4f1abef4f5fc6610a9926e890 100644 (file)
@@ -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();