]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow writing empty content to new file 22237/head
authorGeorg Ehrke <developer@georgehrke.com>
Thu, 13 Aug 2020 13:41:26 +0000 (15:41 +0200)
committerGeorg Ehrke <developer@georgehrke.com>
Thu, 13 Aug 2020 13:41:26 +0000 (15:41 +0200)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
lib/private/Files/Node/Folder.php

index d9639e9f1abf9ef6442e072338500de5046775f3..1da535c0efe03b6addd41d32751fc45bdaa4e524 100644 (file)
@@ -188,7 +188,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);