Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[FIX] 404 when delivering files
Browse files Browse the repository at this point in the history
  • Loading branch information
theodortruffer committed Apr 14, 2016
1 parent 91e01b7 commit 9dc3585
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/Client/class.ownclClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9dc3585

Please sign in to comment.