- security fix in profile

git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2267 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices 2008-03-08 12:27:08 +00:00
parent b593bc2f79
commit 2f6b60e063

View file

@ -160,7 +160,7 @@ function save_profile_from_post(&$userdata, &$errors)
$fields = array($conf['user_fields']['email']);
$data = array();
$data{$conf['user_fields']['id']} = $_POST['userid'];
$data{$conf['user_fields']['id']} = $userdata['id'];
$data{$conf['user_fields']['email']} = $_POST['mail_address'];
// password is updated only if filled
@ -184,7 +184,7 @@ function save_profile_from_post(&$userdata, &$errors)
);
$data = array();
$data['user_id'] = $_POST['userid'];
$data['user_id'] = $userdata['id'];
foreach ($fields as $field)
{