diff --git a/pandora_console/godmode/alerts/alert_commands.php b/pandora_console/godmode/alerts/alert_commands.php
index 7fa2b9a3f0..caa47e3d02 100644
--- a/pandora_console/godmode/alerts/alert_commands.php
+++ b/pandora_console/godmode/alerts/alert_commands.php
@@ -56,7 +56,7 @@ if (is_ajax()) {
// If is setted a description, we change the carriage return by
tags
if (isset($command['description'])) {
- $command['description'] = io_safe_input(str_replace("\r\n", '
', io_safe_output($command['description'])));
+ $command['description'] = str_replace("\r\n", '
', io_safe_output($command['description']));
}
// Descriptions are stored in json.
diff --git a/pandora_console/godmode/alerts/configure_alert_action.php b/pandora_console/godmode/alerts/configure_alert_action.php
index 8ea292445b..21380d6738 100644
--- a/pandora_console/godmode/alerts/configure_alert_action.php
+++ b/pandora_console/godmode/alerts/configure_alert_action.php
@@ -295,7 +295,7 @@ $(document).ready (function () {
var origicommand_descriptionnal_command;
if () {
- original_command = "";
+ original_command = "', addslashes(io_safe_output(alerts_get_alert_command_command($id_command)))); ?>";
render_command_preview(original_command);
command_description = "', addslashes(io_safe_output(alerts_get_alert_command_description($id_command)))); ?>";