Skip to content
Snippets Groups Projects
Commit 160d5670 authored by Frédéric Carretero's avatar Frédéric Carretero
Browse files

Corrections dans la fonction "deleteFileFromWsDataDirTree"

parent 17d2bfdc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment