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 e645c5d + b3ad27f commit ada25abCopy full SHA for ada25ab
1 file changed
apps/files_trashbin/lib/Controller/PreviewController.php
@@ -88,12 +88,12 @@ public function __construct(
88
* @return DataResponse|Http\FileDisplayResponse
89
*/
90
public function getPreview(
91
- int $fileId,
+ int $fileId = -1,
92
int $x = 128,
93
int $y = 128
94
) {
95
96
- if ($x === 0 || $y === 0) {
+ if ($fileId === -1 || $x === 0 || $y === 0) {
97
return new DataResponse([], Http::STATUS_BAD_REQUEST);
98
}
99
0 commit comments