Skip to content
Snippets Groups Projects
Unverified Commit ada25ab4 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #18728 from simonspa/trashbin_exception

 Trash bin: fix exception triggered if no correct fileId is provided.
parents e645c5d9 b3ad27f7
No related branches found
No related tags found
No related merge requests found
...@@ -88,12 +88,12 @@ class PreviewController extends Controller { ...@@ -88,12 +88,12 @@ class PreviewController extends Controller {
* @return DataResponse|Http\FileDisplayResponse * @return DataResponse|Http\FileDisplayResponse
*/ */
public function getPreview( public function getPreview(
int $fileId, int $fileId = -1,
int $x = 128, int $x = 128,
int $y = 128 int $y = 128
) { ) {
if ($x === 0 || $y === 0) { if ($fileId === -1 || $x === 0 || $y === 0) {
return new DataResponse([], Http::STATUS_BAD_REQUEST); return new DataResponse([], Http::STATUS_BAD_REQUEST);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment