mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 14:54:52 +02:00
Avoid XSS in Net Scan scripts
This commit is contained in:
parent
cbed2ef758
commit
6a192433cb
@ -180,7 +180,7 @@ class ManageNetScanScripts extends Wizard
|
|||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
$reconscript_name = get_parameter('form_name', '');
|
$reconscript_name = get_parameter('form_name', '');
|
||||||
$reconscript_description = get_parameter('form_description', '');
|
$reconscript_description = io_safe_input(strip_tags(io_safe_output((string) get_parameter('form_description'))));
|
||||||
$reconscript_script = get_parameter('form_script', '');
|
$reconscript_script = get_parameter('form_script', '');
|
||||||
|
|
||||||
// Get macros.
|
// Get macros.
|
||||||
@ -260,7 +260,7 @@ class ManageNetScanScripts extends Wizard
|
|||||||
|
|
||||||
// If modified any parameter.
|
// If modified any parameter.
|
||||||
$reconscript_name = get_parameter('form_name', '');
|
$reconscript_name = get_parameter('form_name', '');
|
||||||
$reconscript_description = get_parameter('form_description', '');
|
$reconscript_description = io_safe_input(strip_tags(io_safe_output((string) get_parameter('form_description'))));
|
||||||
$reconscript_script = get_parameter('form_script', '');
|
$reconscript_script = get_parameter('form_script', '');
|
||||||
|
|
||||||
// Get macros.
|
// Get macros.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user