Changeset 9923 for trunk


Ignore:
Timestamp:
Mar 29, 2011, 9:30:28 PM (13 years ago)
Author:
patdenice
Message:

bug:2234
HTML characters are allowed in username

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_user.inc.php

    r9074 r9923  
    112112  {
    113113    array_push($errors, l10n('this login is already used'));
     114  }
     115  if ($login != strip_tags($login))
     116  {
     117    array_push($errors, l10n('html tags are not allowed in login'));
    114118  }
    115119  $mail_error = validate_mail_address(null, $mail_address);
  • trunk/language/en_UK/common.lang.php

    r9522 r9923  
    359359$lang['delete this comment'] = "delete this comment";
    360360$lang['validate this comment'] = 'validate this comment';
     361$lang['html tags are not allowed in login'] = 'html tags are not allowed in login';
    361362?>
  • trunk/language/fr_FR/common.lang.php

    r9799 r9923  
    359359$lang['delete this comment'] = "supprimer ce commentaire";
    360360$lang['validate this comment'] = 'valider ce commentaire';
     361$lang['html tags are not allowed in login'] = 'les balises html ne sont pas autorisées dans le login';
    361362?>
Note: See TracChangeset for help on using the changeset viewer.