diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-01-19 15:34:39 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-01-19 15:34:39 +0000 |
| commit | 938eeba4af4a46126fc4d2fcbe46c15c98d70090 (patch) | |
| tree | daf653ad9c11f00b291719b19c19adcb72ca20f1 /frontends/php/include/validate.inc.php | |
| parent | a901997b009039670ecc3144465ecea54d16af4a (diff) | |
| download | zabbix-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.php | 6 |
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","({}!='')&&"); |
