2011-06-07 Javier Lanz <javier.lanz@artica.es>
* operation/events/events_list.php: Added rawurlencode and io_safe_input where they were necessary git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4415 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d6b145170f
commit
862cc8198d
|
@ -1,3 +1,8 @@
|
|||
2011-06-07 Javier Lanz <javier.lanz@artica.es>
|
||||
|
||||
* operation/events/events_list.php: Added rawurlencode and io_safe_input
|
||||
where they were necessary
|
||||
|
||||
2011-06-07 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* operation/agentes/datos_agente.php: Improved filter. It allows
|
||||
|
|
|
@ -98,7 +98,7 @@ switch($status) {
|
|||
}
|
||||
|
||||
if ($search != "") {
|
||||
$sql_post .= " AND evento LIKE '%".base64_decode($search)."%'";
|
||||
$sql_post .= " AND evento LIKE '%".io_safe_input($search)."%'";
|
||||
}
|
||||
|
||||
if ($event_type != "") {
|
||||
|
@ -132,7 +132,7 @@ if ($event_view_hr > 0) {
|
|||
}
|
||||
|
||||
$url = "index.php?sec=eventos&sec2=operation/events/events&search=" .
|
||||
$search . "&event_type=" . $event_type .
|
||||
rawurlencode($search) . "&event_type=" . $event_type .
|
||||
"&severity=" . $severity . "&status=" . $status . "&ev_group=" .
|
||||
$ev_group . "&refr=" . $config["refr"] . "&id_agent=" .
|
||||
$id_agent . "&id_event=" . $id_event . "&pagination=" .
|
||||
|
@ -407,7 +407,7 @@ foreach ($result as $event) {
|
|||
|
||||
// Event description
|
||||
$data[1] = '<span title="'.$event["evento"].'" class="f9">';
|
||||
$data[1] .= '<a href="'.$url.'&group_rep=0&offset=0&pure='.$config["pure"].'&search='.base64_encode ($event["evento"]).'">';
|
||||
$data[1] .= '<a href="'.$url.'&group_rep=0&offset=0&pure='.$config["pure"].'&search='.rawurlencode ($event["evento"]).'">';
|
||||
if (strlen ($event["evento"]) > 50) {
|
||||
$data[1] .= mb_substr (io_safe_output($event["evento"]), 0, 50)."...";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue