summaryrefslogtreecommitdiffstats
path: root/frontends/php/profile.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-10-08 11:59:15 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-10-08 11:59:15 +0000
commitf99327ef29f466bac40fdd47413d1a9cab9b3690 (patch)
tree48748ced776efb2490b7c382dcfb7c002ffb2130 /frontends/php/profile.php
parent09174fc6e94e7ff57d3d1e9f8dd134be4d7645c7 (diff)
downloadzabbix-f99327ef29f466bac40fdd47413d1a9cab9b3690.tar.gz
zabbix-f99327ef29f466bac40fdd47413d1a9cab9b3690.tar.xz
zabbix-f99327ef29f466bac40fdd47413d1a9cab9b3690.zip
- [DEV-50] merged rev. 4841:4843 of branches/1.4/ (Artem) [improved incoming parameters exception validation]
git-svn-id: svn://svn.zabbix.com/trunk@4847 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/profile.php')
-rw-r--r--frontends/php/profile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/profile.php b/frontends/php/profile.php
index de933354..6f46601b 100644
--- a/frontends/php/profile.php
+++ b/frontends/php/profile.php
@@ -38,8 +38,8 @@ include_once "include/page_header.php";
<?php
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
$fields=array(
- "password1"=> array(T_ZBX_STR, O_OPT, null, null, 'isset({save})&&{form}!="update"&&isset({change_password})'),
- "password2"=> array(T_ZBX_STR, O_OPT, null, null, 'isset({save})&&{form}!="update"&&isset({change_password})'),
+ "password1"=> array(T_ZBX_STR, O_OPT, null, null, 'isset({save})&&isset({form})&&({form}!="update")&&isset({change_password})'),
+ "password2"=> array(T_ZBX_STR, O_OPT, null, null, 'isset({save})&&isset({form})&&({form}!="update")&&isset({change_password})'),
"lang"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, 'isset({save})'),
"autologout"=> array(T_ZBX_INT, O_OPT, null, BETWEEN(0,3600),'isset({save})'),
"url"=> array(T_ZBX_STR, O_OPT, null, null, 'isset({save})'),