We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69f29f4 + 9395cc8 commit 715abc5Copy full SHA for 715abc5
1 file changed
src/Http/Controllers/CP/Assets/AssetsController.php
@@ -42,6 +42,8 @@ public function show($asset)
42
{
43
$asset = Asset::find(base64_decode($asset));
44
45
+ abort_if(! $asset, 404);
46
+
47
// TODO: Auth
48
49
return new AssetResource($asset);
@@ -132,6 +134,8 @@ public function download($asset)
132
134
133
135
136
137
138
139
140
141
return $asset->download();
0 commit comments