Avoid XSS in Edit OS form.
This commit is contained in:
parent
99bb0eb809
commit
58f521e8b5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue