From 18228b1b8ef21b81384f207667f34481895457ad Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 4 Jan 2024 23:54:40 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20pb=20de=20chemin=20pour=20les=20r=C3=A9da?= =?UTF-8?q?cteurs=20avec=20droit=20RFM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/user/user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index 72be54e7..a7b14f9d 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -692,7 +692,7 @@ class user extends common 'rename' => $this->getInput('profilEditFolderRename', helper::FILTER_BOOLEAN), 'copycut' => $this->getInput('profilEditFolderCopycut', helper::FILTER_BOOLEAN), 'chmod' => $this->getInput('profilEditFolderChmod', helper::FILTER_BOOLEAN), - 'path' => $path, + 'path' => preg_replace('/^\\./', '', $path), // Supprime le point pour préserver le chemin ], 'page' => [ 'add' => $this->getInput('profilEditPageAdd', helper::FILTER_BOOLEAN), @@ -841,7 +841,7 @@ class user extends common 'rename' => $this->getInput('profilAddFolderRename', helper::FILTER_BOOLEAN), 'copycut' => $this->getInput('profilAddFolderCopycut', helper::FILTER_BOOLEAN), 'chmod' => $this->getInput('profilAddFolderChmod', helper::FILTER_BOOLEAN), - 'path' => $path, + 'path' => preg_replace('/^\\./', '', $path), // Supprime le point pour préserver le chemin ], 'page' => [ 'add' => $this->getInput('profilAddPageAdd', helper::FILTER_BOOLEAN), @@ -1384,7 +1384,7 @@ class user extends common // Ignorer les entrées de répertoire parent et actuel if ($file == '.' || $file == '..') { continue; - } + } // Construisez le chemin complet du fichier ou du répertoire $path = $dir . '/' . $file; // Vérifiez si c'est un répertoire