diff --git a/classes/Client/class.ownclClient.php b/classes/Client/class.ownclClient.php index 184a659..5aa1eff 100644 --- a/classes/Client/class.ownclClient.php +++ b/classes/Client/class.ownclClient.php @@ -106,7 +106,8 @@ public function fileExists($path) { * @throws ilCloudException */ public function deliverFile($path) { - $path = $this->urlencode($path); + $str = ltrim($path, "/"); + $path = $this->urlencode($str); $response = $this->getSabreClient()->request('GET', $path); if (self::DEBUG) { global $log;