]> source.dussan.org Git - nextcloud-server.git/commitdiff
create urls in a way that sabredav handles it correctly
authorBjörn Schießle <bjoern@schiessle.org>
Mon, 11 Jan 2016 15:28:54 +0000 (16:28 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 12 Jan 2016 13:24:47 +0000 (14:24 +0100)
apps/dav/lib/carddav/syncservice.php

index b8dfcfdbc5e03c708357b29bf6c8b616369bccd9..148ba4b90812b7951f7cdc7ee35b0e63ef18965c 100644 (file)
@@ -99,14 +99,14 @@ class SyncService {
         */
        protected function requestSyncReport($url, $userName, $sharedSecret, $syncToken) {
                $settings = [
-                       'baseUri' => $url,
+                       'baseUri' => $url . '/',
                        'userName' => $userName,
                        'password' => $sharedSecret,
                ];
                $client = new Client($settings);
                $client->setThrowExceptions(true);
 
-               $addressBookUrl = "/remote.php/dav/addressbooks/system/system/system";
+               $addressBookUrl = "remote.php/dav/addressbooks/system/system/system";
                $body = $this->buildSyncCollectionRequestBody($syncToken);
 
                $response = $client->request('REPORT', $addressBookUrl, $body, [