summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-08-20 09:03:06 +0200
committerGitHub <noreply@github.com>2020-08-20 09:03:06 +0200
commitaf3a59fab5798918697d25616ccdd929bc10a7fa (patch)
treee57017d8ba1efd6a0887e506ab7e36c923727b8c /lib
parent1f4c0299773f95032b2453041dd356b781b05988 (diff)
parentee23906c3c1a283e0fc47627f90f772ef48fb5e7 (diff)
downloadnextcloud-server-af3a59fab5798918697d25616ccdd929bc10a7fa.tar.gz
nextcloud-server-af3a59fab5798918697d25616ccdd929bc10a7fa.zip
Merge pull request #22237 from nextcloud/bugfix/noid/allow_putContent_empty_string
Allow writing empty content to new file
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Node/Folder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php
index 2e061bd4cc6..c5e1776dc18 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -189,7 +189,7 @@ class Folder extends Node implements \OCP\Files\Folder {
} else {
$result = $this->view->touch($fullPath);
}
- if (!$result) {
+ if ($result === false) {
throw new NotPermittedException('Could not create path');
}
$node = new File($this->root, $this->view, $fullPath);