From 160d5670d9aae57c304320b1442ae4829499d7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Carretero?= <frederic.carretero@veremes.com> Date: Wed, 21 Nov 2018 16:59:40 +0100 Subject: [PATCH] Corrections dans la fonction "deleteFileFromWsDataDirTree" --- vas/rest/class/vmlib/phpUtil.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/vas/rest/class/vmlib/phpUtil.inc b/vas/rest/class/vmlib/phpUtil.inc index 8bca814b..e295ea6a 100755 --- a/vas/rest/class/vmlib/phpUtil.inc +++ b/vas/rest/class/vmlib/phpUtil.inc @@ -455,6 +455,7 @@ function stripslashes_deep($aString) { // Suppression du slash de début de ligne. if (strpos($sServerPath, '/') === 0) $sServerPath = substr($sServerPath, 1); + $sServerPath = preg_replace('/\/{2,}/', '/', $sServerPath); $aResult = $s3->deleteObject(array( 'Bucket' => $sBucket, 'Key' => $sServerPath -- GitLab