security: add CSRF protection and harden core handling
Add CSRF token validation and include tokens in authentication, website manager, and GrapesJS forms and requests. Harden login with password hash verification and session ID regeneration, validate database identifiers and charset, and secure upload MIME detection and filename generation. Update nullable type declarations and PHP syntax across core contracts and modules, switch the Docker image to PHP 8.4, and move the theme script asset to the end of the page. Refresh the PageBuilderBody distribution assets.
This commit is contained in:
@@ -171,7 +171,7 @@ class Extensions
|
||||
/**
|
||||
* Get all settings.
|
||||
*/
|
||||
public static function getSettings($ext = null) : array {
|
||||
public static function getSettings(?string $ext = null) : array {
|
||||
$settingIns = phpb_instance('setting');
|
||||
$hydrSettings = [];
|
||||
foreach (self::$settings as $setting) {
|
||||
|
||||
Reference in New Issue
Block a user