diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-05-09 17:11:00 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-05-09 17:11:00 +0000 |
| commit | d0ee36be65e5e2287429185aac33370d1141fca3 (patch) | |
| tree | 344529905b21184bc0069bd56b9f5bdea65b06b2 /frontends/php/hosts.php | |
| parent | 2c4b75dcb19733161b8b9a8a6392539a1f3f4647 (diff) | |
| download | zabbix-d0ee36be65e5e2287429185aac33370d1141fca3.tar.gz zabbix-d0ee36be65e5e2287429185aac33370d1141fca3.tar.xz zabbix-d0ee36be65e5e2287429185aac33370d1141fca3.zip | |
- fixed ip validation for templates (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4113 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
| -rw-r--r-- | frontends/php/hosts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php index 3d556b42..d1768ec6 100644 --- a/frontends/php/hosts.php +++ b/frontends/php/hosts.php @@ -68,7 +68,7 @@ include_once "include/page_header.php"; "host"=> array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, '({config}==0||{config}==3)&&isset({save})'), "dns"=> array(T_ZBX_STR, O_OPT, NULL, NULL, '{config}==0&&isset({save})'), "useip"=> array(T_ZBX_STR, O_OPT, NULL, IN('0,1'), '{config}==0&&isset({save})'), - "ip"=> array(T_ZBX_IP, O_OPT, NULL, NULL, '({useip}==1)'), + "ip"=> array(T_ZBX_IP, O_OPT, NULL, NULL, '{config}==0'), "port"=> array(T_ZBX_INT, O_OPT, NULL, BETWEEN(0,65535),'{config}==0&&isset({save})'), "status"=> array(T_ZBX_INT, O_OPT, NULL, IN("0,1,3"), '{config}==0&&isset({save})'), |
