diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-05-09 12:36:00 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-05-09 12:36:00 +0000 |
| commit | 5d66d33148cb46d80b913ded5ff13a0a9841ca30 (patch) | |
| tree | d4a7c94250c5fff281fae19a717aa8ed5af05324 /frontends/php/include | |
| parent | d18d7152bbdf0930483697e24fec5cddec219873 (diff) | |
- dixed dns name validation (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4107 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/hosts.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php index 4730cdd3..f155d92b 100644 --- a/frontends/php/include/hosts.inc.php +++ b/frontends/php/include/hosts.inc.php @@ -148,7 +148,7 @@ require_once "include/items.inc.php"; global $ZBX_CURNODEID; /* Character '-' must be last in the list of symbols, otherwise it won't be accepted */ - if (!eregi('^([0-9a-zA-Z\_\.\$[.-.]]+)$', $dns)) + if ( !empty($dns) && !eregi('^([0-9a-zA-Z\_\.\$[.-.]]+)$', $dns)) { error("DNS should contain '0-9a-zA-Z_.$'- characters only"); return false; |
