You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2010/09/16 19:37:15 UTC
svn commit: r997860 - /incubator/vcl/trunk/web/.ht-inc/userpreferences.php
Author: jfthomps
Date: Thu Sep 16 17:37:15 2010
New Revision: 997860
URL: http://svn.apache.org/viewvc?rev=997860&view=rev
Log:
modified processUserPrefsInput - added check for existance of newpassword in $_POST before doing any password stuff
Modified:
incubator/vcl/trunk/web/.ht-inc/userpreferences.php
Modified: incubator/vcl/trunk/web/.ht-inc/userpreferences.php
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/userpreferences.php?rev=997860&r1=997859&r2=997860&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/userpreferences.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/userpreferences.php Thu Sep 16 17:37:15 2010
@@ -601,7 +601,7 @@ function processUserPrefsInput($checks=1
$submitErr |= VIEWASUSERERR;
$submitErrMsg[VIEWASUSERERR] = "Invalid user id";
}
- if($user['affiliation'] == 'Local') {
+ if($user['affiliation'] == 'Local' && array_key_exists('newpassword', $_POST)) {
$return['newpassword'] = $_POST['newpassword'];
$confirmpwd = $_POST['confirmpassword'];
$curr = $_POST['currentpassword'];