mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-23 22:05:41 +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 = [];
|
||||
|
||||
$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', '');
|
||||
|
||||
// Get macros.
|
||||
@ -260,7 +260,7 @@ class ManageNetScanScripts extends Wizard
|
||||
|
||||
// If modified any parameter.
|
||||
$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', '');
|
||||
|
||||
// Get macros.
|
||||
|
Loading…
x
Reference in New Issue
Block a user