From f57e7fcbdce6931e18116ef0df4e790584bd9533 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 4 Jan 2024 23:54:35 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index 82aba49..e014c31 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -689,7 +689,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' => $this->getInput('profilEditPath'), + 'path' => preg_replace('/^\\./', '', $this->getInput('profilEditPath')), // Supprime le point pour préserver le chemin ], 'page' => [ 'add' => $this->getInput('profilEditPageAdd', helper::FILTER_BOOLEAN), @@ -837,7 +837,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' => $this->getInput('profilAddPath'), + 'path' => preg_replace('/^\\./', '', $this->getInput('profilEditPath')), // Supprime le point pour préserver le chemin, ], 'page' => [ 'add' => $this->getInput('profilAddPageAdd', helper::FILTER_BOOLEAN),