summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-05-14 23:08:45 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-14 10:13:24 +0200
commitc6a83b2f1740936ba39acc13b6f0f9b9d619ca07 (patch)
tree731bb148506b729916c0eac0b4fa2326f93ff42e /lib
parentcf5a72c10398bb18817cff8ca4dfba4429a97123 (diff)
downloadnextcloud-server-c6a83b2f1740936ba39acc13b6f0f9b9d619ca07.tar.gz
nextcloud-server-c6a83b2f1740936ba39acc13b6f0f9b9d619ca07.zip
Fix exposing single files over webdav
Diffstat (limited to 'lib')
-rw-r--r--lib/private/connector/sabre/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index 4e90d46ad41..7591cc5c066 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -140,7 +140,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements \Sabre\
if (\OC_Util::encryptedFiles()) {
throw new \Sabre\DAV\Exception\ServiceUnavailable();
} else {
- return $this->fileView->fopen($this->path, 'rb');
+ return $this->fileView->fopen(ltrim($this->path, '/'), 'rb');
}
}