Changeset 205
- Timestamp:
- 11/04/2006 07:12:26 AM (3 years ago)
- Files:
-
- 1 modified
-
trunk/actions/usersettings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/actions/usersettings.php
r204 r205 251 251 { 252 252 // check password 253 $oldpass = $ this->GetSafeVar('oldpass', 'post'); //can be current password or hash sent as password reminder254 $password = $ this->GetSafeVar('password', 'post');255 $password_confirm = $ this->GetSafeVar('password_confirm', 'post');253 $oldpass = $_POST['oldpass']; //can be current password or hash sent as password reminder 254 $password = $_POST['password']; 255 $password_confirm = $_POST['password_confirm']; 256 256 $update_option = $this->GetSafeVar('update_option', 'post'); 257 257 … … 384 384 else if ($register == '1' || $register == '2') // otherwise, proceed to registration 385 385 { 386 $name = trim($ this->GetSafeVar('name', 'post'));386 $name = trim($_POST['name']); 387 387 $email = trim($this->GetSafeVar('email', 'post')); 388 $password = $ this->GetSafeVar('password', 'post');389 $confpassword = $ this->GetSafeVar('confpassword', 'post');388 $password = $_POST['password']; 389 $confpassword = $_POST['confpassword']; 390 390 391 391 // validate input … … 460 460 elseif (isset($_POST['action']) && ($_POST['action'] == 'updatepass')) 461 461 { 462 $name = trim($this->GetSafeVar('yourname', 'post'));462 $name = trim($_POST['yourname']); 463 463 if (strlen($name) == 0) // empty username 464 464 { … … 471 471 $username_temp_highlight = INPUT_ERROR_STYLE; 472 472 } 473 elseif (!($this->LoadUser($ this->GetSafeVar('yourname', 'post')))) //check if user exists473 elseif (!($this->LoadUser($_POST['yourname']))) //check if user exists 474 474 { 475 475 $newerror = ERROR_NON_EXISTENT_USERNAME; 476 476 $username_temp_highlight = INPUT_ERROR_STYLE; 477 477 } 478 elseif ($existingUser = $this->LoadUser($ this->GetSafeVar('yourname', 'post'))) // if user name already exists, check password478 elseif ($existingUser = $this->LoadUser($_POST['yourname'])) // if user name already exists, check password 479 479 { 480 480 // updatepassword