Skip to content

Commit b21f4ae

Browse files
committed
fix: use correct File parameter in loadCertDataFromLibreSignFile
Fix bug where $this->file was used instead of $file parameter, causing validation to fail when checking signed node ID. Signed-off-by: Vitor Mattos <[email protected]>
1 parent 6ae6c28 commit b21f4ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/FileService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ private function loadFileMetadata(): void {
316316
}
317317

318318
private function loadCertDataFromLibreSignFile(?File $file = null): void {
319-
if (!empty($this->certData) || !$this->options->isValidateFile() || !$file instanceof File || !$this->file->getSignedNodeId()) {
319+
if (!empty($this->certData) || !$this->options->isValidateFile() || !$file instanceof File || !$file->getSignedNodeId()) {
320320
return;
321321
}
322322

0 commit comments

Comments
 (0)