Projet

Général

Profil

Révision cd5c298a

Ajouté par Geoffroy Desvernay il y a environ 5 ans

MAJ 7.60 -> 7.62

Voir les différences:

drupal7/modules/user/user.module
637 637
  if (strpos($name, '  ') !== FALSE) {
638 638
    return t('The username cannot contain multiple spaces in a row.');
639 639
  }
640
  if (preg_match('/[^\x{80}-\x{F7} a-z0-9@_.\'-]/i', $name)) {
640
  if (preg_match('/[^\x{80}-\x{F7} a-z0-9@+_.\'-]/i', $name)) {
641 641
    return t('The username contains an illegal character.');
642 642
  }
643 643
  if (preg_match('/[\x{80}-\x{A0}' .         // Non-printable ISO-8859-1 + NBSP
......
689 689
  $validators = array(
690 690
    'file_validate_is_image' => array(),
691 691
    'file_validate_image_resolution' => array(variable_get('user_picture_dimensions', '85x85')),
692
    'file_validate_size' => array(variable_get('user_picture_file_size', '30') * 1024),
692
    'file_validate_size' => array((int) variable_get('user_picture_file_size', '30') * 1024),
693 693
  );
694 694

  
695 695
  // Save the file as a temporary file.

Formats disponibles : Unified diff