@@ -190,10 +190,9 @@ function syslog_statistics() {
190190 'options ' => array ('options ' => 'sanitize_search_string ' )
191191 ),
192192 'host ' => array (
193- 'filter ' => FILTER_CALLBACK ,
193+ 'filter ' => FILTER_VALIDATE_IS_NUMERIC_LIST ,
194194 'pageset ' => true ,
195195 'default ' => '' ,
196- 'options ' => array ('options ' => 'sanitize_search_string ' )
197196 ),
198197 'facility ' => array (
199198 'filter ' => FILTER_CALLBACK ,
@@ -645,10 +644,9 @@ function syslog_request_validation($current_tab, $force = false) {
645644 'default ' => '-1 '
646645 ),
647646 'host ' => array (
648- 'filter ' => FILTER_CALLBACK ,
647+ 'filter ' => FILTER_VALIDATE_IS_NUMERIC_LIST ,
649648 'pageset ' => true ,
650- 'default ' => '0 ' ,
651- 'options ' => array ('options ' => 'sanitize_search_string ' )
649+ 'default ' => '' ,
652650 ),
653651 'efacility ' => array (
654652 'filter ' => FILTER_CALLBACK ,
@@ -1280,7 +1278,7 @@ function timeshiftFilterRight() {
12801278 <td>
12811279 <?php print __ ('Devices ' , 'syslog ' );?>
12821280 </td>
1283- <td class='even' >
1281+ <td>
12841282 <select id='host' multiple style='display:none; width: 150px; overflow: scroll;'>
12851283 <?php if ($ tab == 'syslog ' ) { ?> <option id='host_all' value='0'<?php if (get_request_var ('host ' ) == 'null ' || get_request_var ('host ' ) == '0 ' || $ reset_multi ) { ?> selected<?php } ?> ><?php print __ ('Show All Devices ' , 'syslog ' );?> </option><?php } else { ?>
12861284 <option id='host_all' value='0'<?php if (get_request_var ('host ' ) == 'null ' || get_request_var ('host ' ) == 0 || $ reset_multi ) { ?> selected<?php } ?> ><?php print __ ('Show All Logs ' , 'syslog ' );?> </option>
@@ -1294,15 +1292,16 @@ function timeshiftFilterRight() {
12941292 $ hosts_where
12951293 ORDER BY host " );
12961294
1297- $ selected = explode (' ' , get_request_var ('host ' ));
1295+ $ selected = explode (', ' , get_request_var ('host ' ));
1296+
12981297 if (cacti_sizeof ($ hosts )) {
12991298 foreach ($ hosts as $ host ) {
13001299 if (!is_ipaddress ($ host ['host ' ])) {
13011300 $ parts = explode ('. ' , $ host ['host ' ]);
13021301 $ host ['host ' ] = $ parts [0 ];
13031302 }
13041303
1305- print "<option value=' " . $ host [" host_id " ] . "' " ;
1304+ print "<option value=' " . $ host [' host_id ' ] . "' " ;
13061305 if (cacti_sizeof ($ selected )) {
13071306 if (in_array ($ host ['host_id ' ], $ selected )) {
13081307 print ' selected ' ;
0 commit comments