From 2bb7957386976200a6299ac49ffac1e1e7162441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Sat, 24 Mar 2012 14:55:58 +0000 Subject: [PATCH] Fix previous commit svn path=/trunk/boinc/; revision=25486 --- checkin_notes | 7 +++++++ html/inc/user.inc | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 1120e355ce..96991951c6 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/html/inc/user.inc b/html/inc/user.inc index b2b7bc67a1..426689a8f6 100644 --- a/html/inc/user.inc +++ b/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; }