From ea47372c06bc32c596a04424f7211fcb56beb341 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 29 Mar 2017 11:01:15 +0200 Subject: [PATCH] Deleted white space when saving modules template --- .../godmode/modules/manage_network_templates_form.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/modules/manage_network_templates_form.php b/pandora_console/godmode/modules/manage_network_templates_form.php index b2176426dc..7e8078b8c9 100644 --- a/pandora_console/godmode/modules/manage_network_templates_form.php +++ b/pandora_console/godmode/modules/manage_network_templates_form.php @@ -73,9 +73,11 @@ elseif (isset ($_GET["add_module"])) { if (isset ($_GET["create"]) || isset ($_GET["update"])) { //Submitted form - $name = get_parameter_post ("name"); + $name = io_safe_output(get_parameter_post ("name")); $description = get_parameter_post ("description"); - if ($name != "") { + + if (!empty($name) && !ctype_space($name)) { + $name = io_safe_input($name); if ($id_np > 0) { //Profile exists $values = array(