diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-08-20 09:03:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 09:03:06 +0200 |
commit | af3a59fab5798918697d25616ccdd929bc10a7fa (patch) | |
tree | e57017d8ba1efd6a0887e506ab7e36c923727b8c /lib | |
parent | 1f4c0299773f95032b2453041dd356b781b05988 (diff) | |
parent | ee23906c3c1a283e0fc47627f90f772ef48fb5e7 (diff) | |
download | nextcloud-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.php | 2 |
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); |