diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a18e47cba1..46b83dc232 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-10-13 Sergio Martin + + * include/functions_db.php: Fixed a SQL query with + the safe_output function + 2010-10-12 Junichi Satoh * godmode/massive/massive_add_action_alerts.php, diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 76ac257c46..a377398f80 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -673,6 +673,7 @@ function get_agent_modules ($id_agent, $details = false, $filter = false, $index ($details != '*' && $indexed) ? 'id_agente_modulo,' : '', implode (",", (array) $details), $where); + $sql = safe_output($sql); $result = get_db_all_rows_sql ($sql); if (empty ($result)) {