Skip to content

Commit

Permalink
bug:2234
Browse files Browse the repository at this point in the history
HTML characters are allowed in username

git-svn-id: http://piwigo.org/svn/trunk@9923 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Mar 29, 2011
1 parent 526074d commit 1ab138e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/functions_user.inc.php
Expand Up @@ -112,6 +112,10 @@ function register_user($login, $password, $mail_address,
{
array_push($errors, l10n('this login is already used'));
}
if ($login != strip_tags($login))
{
array_push($errors, l10n('html tags are not allowed in login'));
}
$mail_error = validate_mail_address(null, $mail_address);
if ('' != $mail_error)
{
Expand Down
1 change: 1 addition & 0 deletions language/en_UK/common.lang.php
Expand Up @@ -358,4 +358,5 @@
$lang['This author removed the comment with id %d'] = 'This author removed the comment with id %d';
$lang['delete this comment'] = "delete this comment";
$lang['validate this comment'] = 'validate this comment';
$lang['html tags are not allowed in login'] = 'html tags are not allowed in login';
?>
1 change: 1 addition & 0 deletions language/fr_FR/common.lang.php
Expand Up @@ -358,4 +358,5 @@
$lang['This author removed the comment with id %d'] = 'Cet auteur a supprimé le commentaire portant l\'identifiant %d';
$lang['delete this comment'] = "supprimer ce commentaire";
$lang['validate this comment'] = 'valider ce commentaire';
$lang['html tags are not allowed in login'] = 'les balises html ne sont pas autorisées dans le login';
?>

0 comments on commit 1ab138e

Please sign in to comment.