Skip to content

Commit

Permalink
fix: add audit file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Oct 6, 2023
1 parent 6bb6359 commit 4c037da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticms-cli/src/Client/Report/AbstractReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function generateXslxReport(): string
SpreadsheetGeneratorServiceInterface::CONTENT_FILENAME => 'Audit-Report.xlsx',
SpreadsheetGeneratorServiceInterface::SHEETS => $this->getSheets(),
];
$tmpFilename = \tempnam(\sys_get_temp_dir(), 'WebReport');
$tmpFilename = \tempnam(\sys_get_temp_dir(), 'Audit-Report-').'.xlsx';
if (!\is_string($tmpFilename)) {
throw new \RuntimeException('Not able to generate a temporary filename');
}
Expand Down

0 comments on commit 4c037da

Please sign in to comment.