From 6b6c417b462ff5147647d9a23c277e3ed205f592 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 11 Jun 2013 13:40:36 +0000 Subject: [PATCH] 2013-06-11 Miguel de Dios * operation/events/events_list.php, operation/events/events.php: fixed the free text search when there is characters as "(". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8289 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/events/events.php | 2 +- pandora_console/operation/events/events_list.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5c1f5c2db3..b1f1ed0340 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-06-11 Miguel de Dios + + * operation/events/events_list.php, operation/events/events.php: + fixed the free text search when there is characters as "(". + 2013-06-11 Miguel de Dios * godmode/alerts/configure_alert_template.php, diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 86e522da5e..682859bab4 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -215,7 +215,7 @@ $tag_without = json_decode($tag_without_json_clean, true); if (empty($tag_without)) $tag_without = array(); $tag_without = array_diff($tag_without, array(0 => 0)); -$search = io_safe_output(preg_replace ("/&([A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/", "&", rawurldecode (get_parameter ("search")))); +$search = io_safe_output(get_parameter ("search")); users_get_groups ($config["id_user"], "ER"); diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 4fe8c9c881..44b11c783c 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -348,7 +348,7 @@ $table_advanced->data = array(); $data = array(); $data[0] = __('Free search') . '
'; -$data[0] .= html_print_input_text ('search', io_safe_output($search), '', 25, 255, true); +$data[0] .= html_print_input_text ('search', $search, '', 25, 255, true); $data[1] = __('Agent search') . '
'; $params = array(); $params['show_helptip'] = true;