summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-09 17:11:00 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-09 17:11:00 +0000
commitd0ee36be65e5e2287429185aac33370d1141fca3 (patch)
tree344529905b21184bc0069bd56b9f5bdea65b06b2 /frontends/php
parent2c4b75dcb19733161b8b9a8a6392539a1f3f4647 (diff)
downloadzabbix-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')
-rw-r--r--frontends/php/hosts.php2
-rw-r--r--frontends/php/include/forms.inc.php2
2 files changed, 2 insertions, 2 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})'),
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index a0b3a976..162dacb4 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -3972,7 +3972,7 @@ include_once 'include/discovery.inc.php';
if($show_only_tmp)
{
$frmHost->AddVar("useip",0);
- $frmHost->AddVar("ip","");
+ $frmHost->AddVar("ip","0.0.0.0");
$frmHost->AddVar("dns","");
}
else