From 443440f99868166431618e9d9b49fe479f4e3467 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 29 Jan 2015 13:40:19 +0100 Subject: [PATCH] Fixed alert command previews in 'Configure alert action' when variable contained a double or single quotes --- pandora_console/godmode/alerts/alert_commands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/alerts/alert_commands.php b/pandora_console/godmode/alerts/alert_commands.php index 685095345f..4594767c1b 100644 --- a/pandora_console/godmode/alerts/alert_commands.php +++ b/pandora_console/godmode/alerts/alert_commands.php @@ -61,7 +61,7 @@ if (is_ajax ()) { $fields_descriptions = empty($command['fields_descriptions']) ? '' : json_decode(io_safe_output($command['fields_descriptions']), true); // Fields values are stored in json - $fields_values = empty($command['fields_values']) ? '' : json_decode(io_safe_output($command['fields_values']), true); + $fields_values = empty($command['fields_values']) ? '' : io_safe_output(json_decode($command['fields_values'], true)); $fields_rows = array(); for ($i = 1; $i <= 10; $i++) {