Avoid XSS in Edit OS form.

This commit is contained in:
Jose Gonzalez 2020-09-09 15:28:11 +02:00
parent 99bb0eb809
commit 58f521e8b5
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ if ($idOS) {
$description = $os['description'];
$icon = $os['icon_name'];
} else {
$name = get_parameter('name', '');
$description = get_parameter('description', '');
$name = io_safe_input(strip_tags(io_safe_output((string) get_parameter('name'))));
$description = io_safe_input(strip_tags(io_safe_output((string) get_parameter('description'))));
$icon = get_parameter('icon', 0);
}