Skip to content
Open

F/P #76

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Security/Presets/MyCspPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MyCspPreset implements Preset
{
public function configure(Policy $policy): void
{
$cdnHost = parse_url((string) env('AWS_CDN_ENDPOINT', ''), PHP_URL_HOST);
$cdnHost = parse_url((string) config('filesystems.disks.s3.cdn_endpoint', ''), PHP_URL_HOST);

$scriptSources = array_filter([
Keyword::SELF,
Expand Down
6 changes: 3 additions & 3 deletions app/Support/CloudinaryUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

class CloudinaryUrl
{
private const CLOUDINARY_HOST = 'res.cloudinary.com';
private const string CLOUDINARY_HOST = 'res.cloudinary.com';

private const UPLOAD_MARKER = '/image/upload/';
private const string UPLOAD_MARKER = '/image/upload/';

public static function src(string $url, int $width): string
{
Expand Down Expand Up @@ -46,7 +46,7 @@ private static function stripExistingTransforms(string $path): string
$segments = explode('/', $path);

if (
isset($segments[0])
$segments[0] !== ''
&& preg_match('/^[a-z0-9_,.-]+$/', $segments[0])
&& preg_match('/[whcfq]_/', $segments[0])
) {
Expand Down
2 changes: 0 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
<env name="APP_MAINTENANCE_DRIVER" value="file"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_STORE" value="array"/>
<env name="DB_CONNECTION" value="mysql"/>
<env name="DB_DATABASE" value="laravel"/>
<env name="MAIL_MAILER" value="array"/>
<env name="PULSE_ENABLED" value="false"/>
<env name="QUEUE_CONNECTION" value="sync"/>
Expand Down
Loading