Skip to content

Commit

Permalink
fix pass mode in log file (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
AraanBranco authored Mar 16, 2024
1 parent 016bb0a commit 0e927ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Flux/LogFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct($filename, $mode = 'a')
chmod($this->filename, 0600);
}

$this->fp = fopen($this->filename, 'a');
$this->fp = fopen($this->filename, $mode);
if ($isNewFile) {
fputs($this->fp, "<?php exit('Forbidden'); ?>\n");
}
Expand Down

0 comments on commit 0e927ef

Please sign in to comment.