diff --git a/vas/rest/class/vmlib/phpUtil.inc b/vas/rest/class/vmlib/phpUtil.inc index 8bca814b10e63bf36cf34fdcd50959e5f7fe68d7..e295ea6ae2a54cecf9ca14f3d4c5d3abbb755146 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