Skip to content

Commit

Permalink
Open update.log in example binary safe
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer committed Jan 21, 2021
1 parent e86fc0e commit f51b1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/client/update/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
echo '</pre>';

// Optional - empty log file
$f = @fopen(__DIR__ . '/update.log', 'r+');
$f = @fopen(__DIR__ . '/update.log', 'rb+');
if ($f !== false) {
ftruncate($f, 0);
fclose($f);
Expand Down

0 comments on commit f51b1ac

Please sign in to comment.