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:
@@ -61,7 +61,7 @@ interface PageContract
|
||||
* @param string|null $locale
|
||||
* @return mixed|string|null
|
||||
*/
|
||||
public function getTranslation(string $setting, $locale = null);
|
||||
public function getTranslation(string $setting, ?string $locale = null);
|
||||
|
||||
/**
|
||||
* Return the translated settings of this page.
|
||||
@@ -76,7 +76,7 @@ interface PageContract
|
||||
* @param string|null $locale
|
||||
* @return mixed
|
||||
*/
|
||||
public function getRoute($locale = null);
|
||||
public function getRoute(?string $locale = null);
|
||||
|
||||
/**
|
||||
* Get the value of the given property of this Page.
|
||||
|
||||
Reference in New Issue
Block a user