From: Dan Brown Date: Tue, 8 Dec 2015 21:01:37 +0000 (+0000) Subject: Fixed bad s3 stock url creation X-Git-Tag: v0.6.0~2^2~9 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/32d5b12d279cc0ac715d962a0975bc99e8510b6a Fixed bad s3 stock url creation --- diff --git a/app/Repos/ImageRepo.php b/app/Repos/ImageRepo.php index 3dce7e94b..2699b9e97 100644 --- a/app/Repos/ImageRepo.php +++ b/app/Repos/ImageRepo.php @@ -237,7 +237,7 @@ class ImageRepo // Get the standard public s3 url if s3 is set as storage type if ($storageUrl == false && env('STORAGE_TYPE') === 's3') { $storageDetails = config('filesystems.disks.s3'); - $storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket'] . $filePath; + $storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket']; } $this->storageUrl = $storageUrl;