*** empty log message ***

svn path=/trunk/boinc/; revision=6066
This commit is contained in:
David Anderson 2005-05-07 06:41:27 +00:00
parent 1193f14296
commit 148b72cfe9
2 changed files with 14 additions and 4 deletions

View File

@ -6279,3 +6279,10 @@ David 6 May 2005
client_types.C,h
cs_scheduler.C
scheduler_op.C
David 6 May 2005
- prevent users from changing their name to empty string
(from Rob Ogilvie)
html/user/
edit_user_info_action.php

View File

@ -9,7 +9,12 @@ db_init();
$user = get_logged_in_user();
$name = process_user_text(post_str("user_name"));
$name = strip_tags($name);
if ($name != strip_tags($name)) {
error_page("HTML tags not allowed in name");
}
if (strlen($name) == 0) {
error_page("You must supply a name for your account.");
}
$url = process_user_text(post_str("url"));
$url = strip_tags($url);
$country = post_str("country");
@ -23,9 +28,7 @@ $result = mysql_query("update user set name='$name', url='$url', country='$count
if ($result) {
Header("Location: home.php");
} else {
page_head("User info update");
echo "Couldn't update user info.";
page_tail();
error_page("Couldn't update user info.");
}
?>