diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-04 20:43:03 -0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-08 20:03:41 -0500 |
commit | f8044cbbce7e19877754a27ae3d7a0716a67a3ae (patch) | |
tree | 3b2dee4b4f4c86c5b5d03d79b09ea064636570d2 /lib | |
parent | f6a4028fad57ff2be8752b17c66b990e042cfdf9 (diff) | |
download | nextcloud-server-f8044cbbce7e19877754a27ae3d7a0716a67a3ae.tar.gz nextcloud-server-f8044cbbce7e19877754a27ae3d7a0716a67a3ae.zip |
Proper exception for upload of .htaccess file via WebDAV
* fixes #2860
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/View.php | 6 |
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; } /** |