Skip to content

Commit eca5ae0

Browse files
committed
fix: use getFile() to obtain file node in loadCertDataFromLibreSignFile
Fix bug where fopen() was called on database File entity instead of filesystem File node, causing 'fopen does not exist' errors in validation. Signed-off-by: Vitor Mattos <[email protected]>
1 parent b21f4ae commit eca5ae0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Service/FileService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ private function loadCertDataFromLibreSignFile(?File $file = null): void {
320320
return;
321321
}
322322

323-
$resource = $file->fopen('rb');
323+
$fileNode = $this->getFile();
324+
$resource = $fileNode->fopen('rb');
324325
$sha256 = $this->getSha256FromResource($resource);
325326
if ($sha256 === $file->getSignedHash()) {
326327
$this->pkcs12Handler->setIsLibreSignFile();

0 commit comments

Comments
 (0)