diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-17 16:43:10 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-17 16:43:10 +0000 |
| commit | 3695a20101806e32166923450b42add7b044b970 (patch) | |
| tree | e825633717d44e4f7b5cdf451b03016901cd7f53 /frontends/php/include/validate.inc.php | |
| parent | 9eaf71aa5dcdaa32ee823059500d60e597f856e4 (diff) | |
| download | zabbix-3695a20101806e32166923450b42add7b044b970.tar.gz zabbix-3695a20101806e32166923450b42add7b044b970.tar.xz zabbix-3695a20101806e32166923450b42add7b044b970.zip | |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2536 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/validate.inc.php')
| -rw-r--r-- | frontends/php/include/validate.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php index 848a4099..b69d0ec8 100644 --- a/frontends/php/include/validate.inc.php +++ b/frontends/php/include/validate.inc.php @@ -104,6 +104,11 @@ else continue; } + if($opt == O_OPT) + { + if(!isset($_REQUEST[$field])) continue; + } + if( ($type == T_ZBX_INT) && !is_numeric($_REQUEST[$field])) { info("Field [".$field."] is not integer"); $ret = 0; continue; |
