apps/files_sharing/lib/Controller/PublicPreviewController.php 1 location
|
@@ 75-77 (lines=3) @@
|
| 72 |
|
$a = false |
| 73 |
|
) { |
| 74 |
|
|
| 75 |
|
if ($t === '' || $x === 0 || $y === 0) { |
| 76 |
|
return new DataResponse([], Http::STATUS_BAD_REQUEST); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
try { |
| 80 |
|
$share = $this->shareManager->getShareByToken($t); |
apps/files_versions/lib/Controller/PreviewController.php 1 location
|
@@ 82-84 (lines=3) @@
|
| 79 |
|
$y = 44, |
| 80 |
|
$version = '' |
| 81 |
|
) { |
| 82 |
|
if($file === '' || $version === '' || $x === 0 || $y === 0) { |
| 83 |
|
return new DataResponse([], Http::STATUS_BAD_REQUEST); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
try { |
| 87 |
|
$userFolder = $this->rootFolder->getUserFolder($this->userId); |
core/Controller/PreviewController.php 2 locations
|
@@ 99-101 (lines=3) @@
|
| 96 |
|
bool $forceIcon = true, |
| 97 |
|
string $mode = 'fill'): Http\Response { |
| 98 |
|
|
| 99 |
|
if ($file === '' || $x === 0 || $y === 0) { |
| 100 |
|
return new DataResponse([], Http::STATUS_BAD_REQUEST); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
try { |
| 104 |
|
$userFolder = $this->root->getUserFolder($this->userId); |
|
@@ 134-136 (lines=3) @@
|
| 131 |
|
bool $forceIcon = true, |
| 132 |
|
string $mode = 'fill') { |
| 133 |
|
|
| 134 |
|
if ($fileId === -1 || $x === 0 || $y === 0) { |
| 135 |
|
return new DataResponse([], Http::STATUS_BAD_REQUEST); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
$userFolder = $this->root->getUserFolder($this->userId); |
| 139 |
|
$nodes = $userFolder->getById($fileId); |