From 7cb1ebacb90b8556a0adea04cb7f4a824013ddc6 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 24 Apr 2024 14:50:13 +0200 Subject: [PATCH] fix: forbid moving a folder into a subfolder of itself Signed-off-by: Robin Appelman [skip ci] --- lib/private/Files/View.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 161a04ac3d5..f524debfb56 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -59,6 +59,7 @@ use OCP\Files\Cache\ICacheEntry; use OCP\Files\ConnectionLostException; use OCP\Files\EmptyFileNameException; use OCP\Files\FileNameTooLongException; +use OCP\Files\ForbiddenException; use OCP\Files\InvalidCharacterInPathException; use OCP\Files\InvalidDirectoryException; use OCP\Files\InvalidPathException;