Skip to content

Commit

Permalink
Remove trailing slash from directory option passed to AwsS3 adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Albin Kerouanton committed Jul 7, 2017
1 parent 78ce9ab commit faa268b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Gaufrette/Adapter/AwsS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public function __construct(S3Client $service, $bucket, array $options = [], $de
$options
);

// Remove trailing slash so it can't be doubled in computePath() method
$this->options['directory'] = rtrim($this->options['directory'], '/');

$this->detectContentType = $detectContentType;
}

Expand Down

0 comments on commit faa268b

Please sign in to comment.