Ticket #980: edit_user_info_action.php.diff
File edit_user_info_action.php.diff, 1.1 KB (added by , 14 years ago) |
---|
-
user/edit_user_info_action.php
26 26 27 27 $name = boinc_htmlentities(post_str("user_name")); 28 28 if ($name != strip_tags($name)) { 29 error_page( "HTML tags not allowed in name");29 error_page(tra("HTML tags are not allowed in your name.")); 30 30 } 31 31 if (strlen($name) == 0) { 32 error_page( "You must supply a name for your account.");32 error_page(tra("You must supply a name for your account.")); 33 33 } 34 34 $url = post_str("url", true); 35 35 $url = strip_tags($url); … … 38 38 $country = "International"; 39 39 } 40 40 if (!is_valid_country($country)) { 41 error_page( "bad country");41 error_page(tra("bad country")); 42 42 } 43 43 $country = BoincDb::escape_string($country); 44 44 $postal_code = post_str("postal_code", true); … … 54 54 if ($result) { 55 55 Header("Location: home.php"); 56 56 } else { 57 error_page( "Couldn't update user info.");57 error_page(tra("Couldn't update user info.")); 58 58 } 59 59 60 60 ?>