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.
1 parent 75f7455 commit 6e68536Copy full SHA for 6e68536
1 file changed
src/Http/Controllers/CP/Assets/AssetsController.php
@@ -38,6 +38,8 @@ public function show($asset)
38
{
39
$asset = Asset::find(base64_decode($asset));
40
41
+ abort_if(! $asset, 404);
42
+
43
// TODO: Auth
44
45
return new AssetResource($asset);
@@ -129,6 +131,8 @@ public function download($asset)
129
131
130
132
133
134
135
136
137
138
return $asset->download();
0 commit comments