From 819114c84816786fa5bd16c933e0ea8d6d09f9d9 Mon Sep 17 00:00:00 2001 From: artem Date: Wed, 16 Jan 2008 14:28:28 +0000 Subject: - [ZBX-253] fixes problem in frontend with long int values (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5259 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/httpconf.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontends/php/httpconf.php') diff --git a/frontends/php/httpconf.php b/frontends/php/httpconf.php index 23a8594f..5b6111d7 100644 --- a/frontends/php/httpconf.php +++ b/frontends/php/httpconf.php @@ -82,7 +82,7 @@ include_once "include/page_header.php"; $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,get_current_nodeid()); - if(isset($_REQUEST['hostid']) && !in_array($_REQUEST['hostid'], explode(',',$accessible_hosts))) + if(isset($_REQUEST['hostid']) && !uint_in_array($_REQUEST['hostid'], explode(',',$accessible_hosts))) { unset($_REQUEST['hostid']); } @@ -101,7 +101,7 @@ include_once "include/page_header.php"; $_REQUEST["applications"] = array(); $show_all_apps = 1; } - elseif(!in_array($_REQUEST["applicationid"],$_REQUEST["applications"])) + elseif(!uint_in_array($_REQUEST["applicationid"],$_REQUEST["applications"])) { array_push($_REQUEST["applications"],$_REQUEST["applicationid"]); } @@ -458,7 +458,7 @@ include_once "include/page_header.php"; while($httptest_data = DBfetch($db_httptests)) { ++$httptest_cnt; - if(!in_array($db_app["applicationid"],$_REQUEST["applications"]) && !isset($show_all_apps)) continue; + if(!uint_in_array($db_app["applicationid"],$_REQUEST["applications"]) && !isset($show_all_apps)) continue; $name = array(); @@ -500,7 +500,7 @@ include_once "include/page_header.php"; } if($httptest_cnt > 0) { - if(in_array($db_app["applicationid"],$_REQUEST["applications"]) || isset($show_all_apps)) + if(uint_in_array($db_app["applicationid"],$_REQUEST["applications"]) || isset($show_all_apps)) $link = new CLink(new CImg("images/general/opened.gif"), "?close=1&applicationid=".$db_app["applicationid"]. url_param("groupid").url_param("hostid").url_param("applications"). -- cgit