*** empty log message ***

svn path=/trunk/boinc/; revision=3568
This commit is contained in:
David Anderson 2004-06-14 18:05:47 +00:00
parent f93b31fcdf
commit 49a2fdd195
6 changed files with 18 additions and 2 deletions

View File

@ -13495,3 +13495,16 @@ Rom 14 June 2004
gui_rpc_client.C
lib/
util.c
David 14 June 2004
- Email addresses in the DB should ALWAYS be lower-case,
with no leading or trailing white space.
Add code (trim, strtolower) to enforce this.
Existing databases should be cleaned up.
html/user/
confirm_email_change.php
create_account_action.php
edit_email_action.php
login_action.php
mail_passwd.php

View File

@ -17,6 +17,7 @@
page_head("Verify email address change");
if ($user) {
if (split_munged_email_addr($user->email_addr, $str, $new_email)) {
$new_email = trim(strtolower($new_email));
$result = mysql_query("update user set email_addr='$new_email' where id=$user->id");
if ($result) {
echo "Email address change verified";

View File

@ -47,6 +47,7 @@ function show_error($str) {
}
$new_email_addr = trim($HTTP_POST_VARS["new_email_addr"]);
$new_email_addr = strtolower($new_email_addr);
if (!is_valid_email_addr($new_email_addr)) {
show_error("Invalid email address:
you must enter a valid address of the form

View File

@ -17,7 +17,7 @@ To confirm this change, please visit the following URL:
db_init();
$user = get_logged_in_user();
$email_addr = trim($HTTP_POST_VARS["email_addr"]);
$email_addr = trim(strtolower($HTTP_POST_VARS["email_addr"]));
page_head("Edit email address");
if ($email_addr == "Verification pending") {

View File

@ -23,6 +23,7 @@
page_tail();
} else {
if (split_munged_email_addr($user->email_addr, $authenticator, $email)) {
$email=trim(strtolower($email));
$retval = mysql_query("update user set email_addr='$email' where id=$user->id");
$n = mysql_affected_rows();
if ($n <= 0) {

View File

@ -6,7 +6,7 @@ require_once("../inc/util.inc");
db_init();
page_head("Password");
$email_addr = trim($HTTP_POST_VARS["email_addr"]);
$email_addr = trim(strtolower($HTTP_POST_VARS["email_addr"]));
if (strlen($email_addr)) {
$query = sprintf(
"select * from user where email_addr = '%s'",