diff --git a/system/CodeIgniter.php b/system/CodeIgniter.php index 7dbfbc8e..285576f4 100644 --- a/system/CodeIgniter.php +++ b/system/CodeIgniter.php @@ -47,7 +47,7 @@ class CodeIgniter /** * The current version of CodeIgniter Framework */ - public const CI_VERSION = '4.2.2'; + public const CI_VERSION = '4.2.3'; /** * App startup time. diff --git a/system/Security/Security.php b/system/Security/Security.php index 529e10b0..36f4a730 100644 --- a/system/Security/Security.php +++ b/system/Security/Security.php @@ -528,9 +528,9 @@ private function restoreHash(): void } /** - * Generates (Regenerate) the CSRF Hash. + * Generates (Regenerates) the CSRF Hash. */ - protected function generateHash(): string + public function generateHash(): string { $this->hash = bin2hex(random_bytes(static::CSRF_HASH_BYTES));