Skip to content

Commit c38dca1

Browse files
Support55 (#1076)
* random_bytes() only for >PHP7 * tab to 4 spaces --------- Co-authored-by: Prasath Mani <[email protected]>
1 parent ac3dd47 commit c38dca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinyfilemanager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function session_error_handling_function($code, $msg, $file, $line) {
247247
if (function_exists('random_bytes')) {
248248
$_SESSION['token'] = bin2hex(random_bytes(32));
249249
} else {
250-
$_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32));
250+
$_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32));
251251
}
252252
}
253253

0 commit comments

Comments
 (0)