mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #22237 from nextcloud/bugfix/noid/allow_putContent_empty_string
Allow writing empty content to new file
This commit is contained in:
commit
af3a59fab5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue