mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-9774-XSS-reporting-dashboard-module' into 'develop'
fix xss See merge request artica/pandorafms!5249
This commit is contained in:
commit
038195146e
@ -774,6 +774,16 @@ class Manager implements PublicLogin
|
||||
|
||||
$dashboards = \db_get_all_rows_sql($sql_dashboard);
|
||||
|
||||
if ($favourite === true && $dashboards !== false && count($dashboards) > 0) {
|
||||
$dashboards = array_map(
|
||||
function ($dashboard) {
|
||||
$dashboard['name'] = io_safe_input($dashboard['name']);
|
||||
return $dashboard;
|
||||
},
|
||||
$dashboards
|
||||
);
|
||||
}
|
||||
|
||||
if ($dashboards === false) {
|
||||
$dashboards = [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user