diff --git a/pandora_console/godmode/wizards/HostDevices.class.php b/pandora_console/godmode/wizards/HostDevices.class.php index cb90d927b8..14ff80b163 100755 --- a/pandora_console/godmode/wizards/HostDevices.class.php +++ b/pandora_console/godmode/wizards/HostDevices.class.php @@ -336,6 +336,12 @@ class HostDevices extends Wizard ) ) ); + + // Forbidden chars cleaning. + foreach ($network as $key => $singleNetwork) { + $network[$key] = preg_replace('/[A-Za-z-()\']/', '', $singleNetwork); + } + unlink($_FILES['network_csv']['tmp_name']); if (empty($network) || is_array($network) === false) { $this->msg = __(