Projet

Général

Profil

Révision f842d52a

Ajouté par Julien Enselme il y a presque 10 ans

Update to 7.28

Voir les différences:

drupal7/includes/bootstrap.inc
8 8
/**
9 9
 * The current system version.
10 10
 */
11
define('VERSION', '7.28');
11
define('VERSION', '7.29');
12 12

  
13 13
/**
14 14
 * Core API compatibility.
......
700 700
 *  TRUE if only containing valid characters, or FALSE otherwise.
701 701
 */
702 702
function drupal_valid_http_host($host) {
703
  return preg_match('/^\[?(?:[a-zA-Z0-9-:\]_]+\.?)+$/', $host);
703
  // Limit the length of the host name to 1000 bytes to prevent DoS attacks with
704
  // long host names.
705
  return strlen($host) <= 1000
706
    // Limit the number of subdomains and port separators to prevent DoS attacks
707
    // in conf_path().
708
    && substr_count($host, '.') <= 100
709
    && substr_count($host, ':') <= 100
710
    && preg_match('/^\[?(?:[a-zA-Z0-9-:\]_]+\.?)+$/', $host);
704 711
}
705 712

  
706 713
/**

Formats disponibles : Unified diff