Skip to content

Commit

Permalink
pkp#8933 Force cast int on original file ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Jun 2, 2023
1 parent 10c8e61 commit 7c4f9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/api/file/PKPManageFileApiHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function cancelFileUpload(array $args, Request $request): JSONMessage
return new JSONMessage(false);
}

$originalFileId = $originalFile['fileId'];
$originalFileId = (int) $originalFile['fileId'];

// Get the file name and uploader user ID
$originalUserId = $originalFile['uploaderUserId'] ? (int)$originalFile['uploaderUserId'] : null;
Expand Down

0 comments on commit 7c4f9cd

Please sign in to comment.