summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/validate.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-09 10:31:17 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-09 10:31:17 +0000
commitcb297e84f068748f96ccf2840a68cad0dfc2a08a (patch)
tree923c8e249a41601605f600ae7617ce6c689dbed1 /frontends/php/include/validate.inc.php
parent5f4473e6d8594c7e0b2444a1bc36630d6a4b4ab7 (diff)
- improved parameters validation for frontend (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4104 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/validate.inc.php')
-rw-r--r--frontends/php/include/validate.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php
index 223f5a9e..d4a63082 100644
--- a/frontends/php/include/validate.inc.php
+++ b/frontends/php/include/validate.inc.php
@@ -31,7 +31,7 @@
function is_hex_color($value)
{
- return eregi('[0-9,A-F]{6}', $value);
+ return eregi('^[0-9,A-F]{6}$', $value);
}
function BETWEEN($min,$max,$var=NULL)