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/scripts_exec.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/scripts_exec.php') diff --git a/frontends/php/scripts_exec.php b/frontends/php/scripts_exec.php index 4c01f23d..c20f0ac5 100644 --- a/frontends/php/scripts_exec.php +++ b/frontends/php/scripts_exec.php @@ -48,7 +48,7 @@ if(isset($_REQUEST['execute'])){ if($script['host_access'] == SCRIPT_HOST_ACCESS_WRITE){ $hosts_read_write = explode(',',get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,null,$_REQUEST['hostid'])); - if(in_array($_REQUEST['hostid'],$hosts_read_write)){ + if(uint_in_array($_REQUEST['hostid'],$hosts_read_write)){ //SDI('WRITE: '.$_REQUEST['scriptid'].' : '.$_REQUEST['hostid']); // $result = execute_script($_REQUEST['scriptid'],$_REQUEST['hostid']); // insert_command_result_form($result["flag"],$result["message"]); @@ -58,7 +58,7 @@ if(isset($_REQUEST['execute'])){ } else { $hosts_read_only = explode(',',get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY,null,null,null,$_REQUEST['hostid'])); - if(in_array($_REQUEST['hostid'],$hosts_read_only)){ + if(uint_in_array($_REQUEST['hostid'],$hosts_read_only)){ //SDI('READ: '.$_REQUEST['scriptid'].' : '.$_REQUEST['hostid']); // $result = execute_script($_REQUEST['scriptid'],$_REQUEST['hostid']); // insert_command_result_form($result["flag"],$result["message"]); -- cgit