mirror of https://github.com/BOINC/boinc.git
Fix previous commit
svn path=/trunk/boinc/; revision=25486
This commit is contained in:
parent
24761958fd
commit
2bb7957386
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue