Skip to content

Commit c37545a

Browse files
authored
Merge pull request #64201 from nextcloud/fix/noid/folder-in-array-strict
fix(files): pass the strict flag to in_array()
2 parents 149f09a + c1952cb commit c37545a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/private/Files/Node/Folder.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public function getOrCreateFolder(string $path, int $maxRetries = 5): IFolder {
550550
return $folder;
551551
}
552552
} catch (NotFoundException) {
553-
$folder = in_array(dirname($path), ['.','/']) ? $this : $this->get(dirname($path));
553+
$folder = in_array(dirname($path), ['.','/'], true) ? $this : $this->get(dirname($path));
554554
if (!($folder instanceof Folder)) {
555555
throw new NotPermittedException("Unable to create folder $path. Parent is not a directory.");
556556
}

0 commit comments

Comments
 (0)