Skip to content

Commit

Permalink
Support55 (#1076)
Browse files Browse the repository at this point in the history
* random_bytes() only for >PHP7

* tab to 4 spaces

---------

Co-authored-by: Prasath Mani <[email protected]>
  • Loading branch information
paponius and prasathmani authored Oct 14, 2024
1 parent ac3dd47 commit c38dca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function session_error_handling_function($code, $msg, $file, $line) {
if (function_exists('random_bytes')) {
$_SESSION['token'] = bin2hex(random_bytes(32));
} else {
$_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32));
$_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32));
}
}

Expand Down

0 comments on commit c38dca1

Please sign in to comment.