Skip to content

Commit

Permalink
Temp File Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lbuchs committed Jan 15, 2024
1 parent 1cc44fb commit e73ff00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Attestation/Format/FormatBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function _createX5cChainFile() {
}

if ($content) {
$this->_x5c_tempFile = \sys_get_temp_dir() . '/x5c_chain_' . \base_convert(\rand(), 10, 36) . '.pem';
$this->_x5c_tempFile = \tempnam(\sys_get_temp_dir(), 'x5c_');
if (\file_put_contents($this->_x5c_tempFile, $content) !== false) {
return $this->_x5c_tempFile;
}
Expand Down

0 comments on commit e73ff00

Please sign in to comment.