From c38dca17e43c5385fec64d656e3789245a526a23 Mon Sep 17 00:00:00 2001 From: paponius Date: Mon, 14 Oct 2024 06:00:02 +0200 Subject: [PATCH] Support55 (#1076) * random_bytes() only for >PHP7 * tab to 4 spaces --------- Co-authored-by: Prasath Mani --- tinyfilemanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index a02a113b..e9b05cf1 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -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)); } }