mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-07-28 20:40:35 +02:00
Support55 (#1076)
* random_bytes() only for >PHP7 * tab to 4 spaces --------- Co-authored-by: Prasath Mani <prasathmani@users.noreply.github.com>
This commit is contained in:
@@ -247,7 +247,7 @@ if (empty($_SESSION['token'])) {
|
|||||||
if (function_exists('random_bytes')) {
|
if (function_exists('random_bytes')) {
|
||||||
$_SESSION['token'] = bin2hex(random_bytes(32));
|
$_SESSION['token'] = bin2hex(random_bytes(32));
|
||||||
} else {
|
} else {
|
||||||
$_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32));
|
$_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user