check if used bucket name is valid
This commit is contained in:
parent
dc8ca00f1e
commit
911e947fd7
|
@ -75,6 +75,10 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
));
|
||||
}
|
||||
|
||||
if (! $this->connection->isValidBucketName($this->bucket)) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
if ( ! $this->connection->doesBucketExist($this->bucket)) {
|
||||
$result = $this->connection->createBucket(array(
|
||||
'Bucket' => $this->bucket
|
||||
|
|
Loading…
Reference in New Issue