diff --git a/pandora_console/godmode/alerts/alert_templates.php b/pandora_console/godmode/alerts/alert_templates.php index 747882326d..003ec45d03 100644 --- a/pandora_console/godmode/alerts/alert_templates.php +++ b/pandora_console/godmode/alerts/alert_templates.php @@ -287,6 +287,7 @@ $url = ui_get_url_refresh( 'offset' => false, 'search_string' => $search_string, 'search_type' => $search_type, + 'alert_flag' => true, ], true, false diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 20dd2d51b5..95a74394c4 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -4834,7 +4834,7 @@ function ui_get_url_refresh($params=false, $relative=true, $add_post=true) $url = substr_replace($url, '', $pos, 5); } - $url = htmlspecialchars($url); + $url = (isset($params['alert_flag']) && $params['alert_flag']) ? $url : htmlspecialchars($url); if (! $relative) { return ui_get_full_url($url, false, false, false);