Fix previous commit

svn path=/trunk/boinc/; revision=25486
This commit is contained in:
Rytis Slatkevičius 2012-03-24 14:55:58 +00:00
parent 24761958fd
commit 2bb7957386
2 changed files with 9 additions and 2 deletions

View File

@ -3029,3 +3029,10 @@ David 23 Mar 2012
error_numbers.h
client/
coproc_detect.cpp
Rytis 24 Mar 2012
- web: fix previous commit.
html/
inc/
user.inc

View File

@ -439,7 +439,7 @@ function is_banned_email_addr($email_addr) {
}
function is_valid_user_name($name, &$reason) {
if (trim($name) !== name) {
if (trim($name) !== $name) {
$reason = tra("user name cannot have leading or trailing white space");
return false;
}
@ -447,7 +447,7 @@ function is_valid_user_name($name, &$reason) {
$reason = tra("user name must be nonempty");
return false;
}
if (sanitize_tags($name) !== name)) {
if (sanitize_tags($name) !== $name) {
$reason = tra("user name may not contain HTML tags");
return false;
}