From 2d76733fbfa2cdb0935210e524f373c18ef47ee9 Mon Sep 17 00:00:00 2001 From: osmiy Date: Wed, 7 Feb 2007 09:27:20 +0000 Subject: - fixed graphs in Oracle system (Eugene) - fixed trigger expressions with ':' (Eugene) - fixed 'Server info' screen componets (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3804 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/hosts.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/php/include/hosts.inc.php') diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php index 4bcd8f2a..ae1cf4db 100644 --- a/frontends/php/include/hosts.inc.php +++ b/frontends/php/include/hosts.inc.php @@ -139,7 +139,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\_\.\$-]+)$', $host)) + if (!eregi('^([0-9a-zA-Z\_\.\$[.-.]]+)$', $host)) { error("Hostname should contain '0-9a-zA-Z_.$'- characters only"); return false; -- cgit