summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/validate.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-01-19 15:34:39 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-01-19 15:34:39 +0000
commit938eeba4af4a46126fc4d2fcbe46c15c98d70090 (patch)
treedaf653ad9c11f00b291719b19c19adcb72ca20f1 /frontends/php/include/validate.inc.php
parenta901997b009039670ecc3144465ecea54d16af4a (diff)
downloadzabbix-938eeba4af4a46126fc4d2fcbe46c15c98d70090.tar.gz
zabbix-938eeba4af4a46126fc4d2fcbe46c15c98d70090.tar.xz
zabbix-938eeba4af4a46126fc4d2fcbe46c15c98d70090.zip
- developed configuration interface of http monitoring (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3732 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/validate.inc.php')
-rw-r--r--frontends/php/include/validate.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php
index 98ea357d..51587261 100644
--- a/frontends/php/include/validate.inc.php
+++ b/frontends/php/include/validate.inc.php
@@ -50,7 +50,11 @@
}
function HEX($var=NULL)
{
- return "ereg(\"^[a-zA-Z0-9]{1,}$\",{".$var."})";
+ return "ereg(\"^[a-zA-Z0-9]{1,}$\",{".$var."})&&";
+ }
+ function KEY_PARAM($var=NULL)
+ {
+ return 'ereg(\'^([0-9a-zA-Z\_\.-\$ ]+)$\',{'.$var.'})&&';
}
define("NOT_EMPTY","({}!='')&&");