summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-05-09 10:35:38 +0200
committerGitHub <noreply@github.com>2017-05-09 10:35:38 +0200
commit07fe15eea577e5844e95dd3b11bc41f8d0bbf14d (patch)
treeaf92cacf52c8f228e494472e2edc67a30a578394 /lib/private
parenta06ef70c8f7731d2e41cb10cf48fcb415d0207d0 (diff)
parentf8044cbbce7e19877754a27ae3d7a0716a67a3ae (diff)
downloadnextcloud-server-07fe15eea577e5844e95dd3b11bc41f8d0bbf14d.tar.gz
nextcloud-server-07fe15eea577e5844e95dd3b11bc41f8d0bbf14d.zip
Merge pull request #4705 from nextcloud/htaccess-upload
Proper exception for upload of .htaccess file via WebDAV
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/View.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 5e581feba6e..0e22415e6f7 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1081,7 +1081,11 @@ class View {
*/
public function free_space($path = '/') {
$this->assertPathLength($path);
- return $this->basicOperation('free_space', $path);
+ $result = $this->basicOperation('free_space', $path);
+ if ($result === null) {
+ throw new InvalidPathException();
+ }
+ return $result;
}
/**