fix [ 1249114 ] unclosed <li> elements in auth modules
This commit is contained in:
parent
fea1002aca
commit
52670adb9f
9 changed files with 30 additions and 28 deletions
|
|
@ -64,7 +64,7 @@ sub _isDuplicateUsername {
|
|||
return 0 if($self->userId ne "1" && $session{user}{username} eq $username);
|
||||
my ($otherUser) = WebGUI::SQL->quickArray("select count(*) from users where username=".quote($username));
|
||||
return 0 if !$otherUser;
|
||||
$self->error('<li>'.WebGUI::International::get(77).' "'.$username.'too", "'.$username.'2", '.'"'.$username.'_'.WebGUI::DateTime::epochToHuman(time(),"%y").'"');
|
||||
$self->error('<li>'.WebGUI::International::get(77).' "'.$username.'too", "'.$username.'2", '.'"'.$username.'_'.WebGUI::DateTime::epochToHuman(time(),"%y").'"'.'</li>');
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -84,13 +84,13 @@ sub _isValidUsername {
|
|||
return 1 if($self->userId ne "1" && $session{user}{username} eq $username);
|
||||
|
||||
if ($username =~ /^\s/ || $username =~ /\s$/) {
|
||||
$error .= '<li>'.WebGUI::International::get(724);
|
||||
$error .= '<li>'.WebGUI::International::get(724).'</li>';
|
||||
}
|
||||
if ($username eq "") {
|
||||
$error .= '<li>'.WebGUI::International::get(725);
|
||||
$error .= '<li>'.WebGUI::International::get(725).'</li>';
|
||||
}
|
||||
unless ($username =~ /^[A-Za-z0-9\-\_\.\,\@]+$/) {
|
||||
$error .= '<li>'.WebGUI::International::get(747);
|
||||
$error .= '<li>'.WebGUI::International::get(747).'</li>';
|
||||
}
|
||||
$self->error($error);
|
||||
return $error eq "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue