Fix XSS
This commit is contained in:
@@ -50,7 +50,7 @@ if (!isset($appName)) {
|
|||||||
try {
|
try {
|
||||||
$settingModel = new \App\Models\Setting();
|
$settingModel = new \App\Models\Setting();
|
||||||
$appSettings = $settingModel->getAppSettings();
|
$appSettings = $settingModel->getAppSettings();
|
||||||
$appName = $appSettings['app_name'];
|
$appName = htmlspecialchars($appSettings['app_name']);
|
||||||
$appTimezone = $appSettings['app_timezone'];
|
$appTimezone = $appSettings['app_timezone'];
|
||||||
|
|
||||||
// Set PHP timezone
|
// Set PHP timezone
|
||||||
|
|||||||
Reference in New Issue
Block a user