Avoid XSS in Edit OS form.
This commit is contained in:
parent
99bb0eb809
commit
58f521e8b5
|
@ -37,8 +37,8 @@ if ($idOS) {
|
||||||
$description = $os['description'];
|
$description = $os['description'];
|
||||||
$icon = $os['icon_name'];
|
$icon = $os['icon_name'];
|
||||||
} else {
|
} else {
|
||||||
$name = get_parameter('name', '');
|
$name = io_safe_input(strip_tags(io_safe_output((string) get_parameter('name'))));
|
||||||
$description = get_parameter('description', '');
|
$description = io_safe_input(strip_tags(io_safe_output((string) get_parameter('description'))));
|
||||||
$icon = get_parameter('icon', 0);
|
$icon = get_parameter('icon', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue