Projet

Général

Profil

Révision ecd39969

Ajouté par Assos Assos il y a environ 5 ans

Udpate to 7.65

Voir les différences:

drupal7/CHANGELOG.txt
1
Drupal 7.xx, xxxx-xx-xx (development version)
2
-----------------------
3

  
4
Drupal 7.65, 2019-03-20
5
-----------------------
6
- Fixed security issues:
7
   - SA-CORE-2019-004
8

  
9
Drupal 7.64, 2019-02-06
10
-----------------------
11
- [regression] Unset the 'host' header in drupal_http_request() during redirect
12
- Fixed: 7.x does not have Phar protection and Phar tests are failing on Drupal 7
13
- Fixed: Notice: Undefined index: display_field in file_field_widget_value() (line 582 of /module/file/file.field.inc)
14
- Performance improvement: Registry rebuild should not parse the same file twice in the same request
15
- Fixed _registry_update() to clear caches after transaction is committed
16

  
1 17
Drupal 7.63, 2019-01-16
2 18
-----------------------
3 19
- Fixed a fatal error for some Drush users introduced by SA-CORE-2019-002.
drupal7/includes/bootstrap.inc
8 8
/**
9 9
 * The current system version.
10 10
 */
11
define('VERSION', '7.63');
11
define('VERSION', '7.65');
12 12

  
13 13
/**
14 14
 * Core API compatibility.
drupal7/includes/common.inc
1094 1094
      elseif ($options['max_redirects']) {
1095 1095
        // Redirect to the new location.
1096 1096
        $options['max_redirects']--;
1097

  
1098
        // We need to unset the 'Host' header
1099
        // as we are redirecting to a new location.
1100
        unset($options['headers']['Host']);
1101

  
1097 1102
        $result = drupal_http_request($location, $options);
1098 1103
        $result->redirect_code = $code;
1099 1104
      }
drupal7/includes/file.inc
993 993
 * @return
994 994
 *   The destination filepath, or FALSE if the file already exists
995 995
 *   and FILE_EXISTS_ERROR is specified.
996
 *
997
 * @throws RuntimeException
998
 *   Thrown if the filename contains invalid UTF-8.
996 999
 */
997 1000
function file_destination($destination, $replace) {
1001
  $basename = drupal_basename($destination);
1002
  if (!drupal_validate_utf8($basename)) {
1003
    throw new RuntimeException(sprintf("Invalid filename '%s'", $basename));
1004
  }
998 1005
  if (file_exists($destination)) {
999 1006
    switch ($replace) {
1000 1007
      case FILE_EXISTS_REPLACE:
......
1002 1009
        break;
1003 1010

  
1004 1011
      case FILE_EXISTS_RENAME:
1005
        $basename = drupal_basename($destination);
1006 1012
        $directory = drupal_dirname($destination);
1007 1013
        $destination = file_create_filename($basename, $directory);
1008 1014
        break;
......
1218 1224
 * @return
1219 1225
 *   File path consisting of $directory and a unique filename based off
1220 1226
 *   of $basename.
1227
 *
1228
 * @throws RuntimeException
1229
 *   Thrown if the $basename is not valid UTF-8 or another error occurs
1230
 *   stripping control characters.
1221 1231
 */
1222 1232
function file_create_filename($basename, $directory) {
1233
  $original = $basename;
1223 1234
  // Strip control characters (ASCII value < 32). Though these are allowed in
1224 1235
  // some filesystems, not many applications handle them well.
1225 1236
  $basename = preg_replace('/[\x00-\x1F]/u', '_', $basename);
1237
  if (preg_last_error() !== PREG_NO_ERROR) {
1238
    throw new RuntimeException(sprintf("Invalid filename '%s'", $original));
1239
  }
1240

  
1226 1241
  if (substr(PHP_OS, 0, 3) == 'WIN') {
1227 1242
    // These characters are not allowed in Windows filenames
1228 1243
    $basename = str_replace(array(':', '*', '?', '"', '<', '>', '|'), '_', $basename);
......
1563 1578
  if (substr($destination, -1) != '/') {
1564 1579
    $destination .= '/';
1565 1580
  }
1566
  $file->destination = file_destination($destination . $file->filename, $replace);
1581
  try {
1582
    $file->destination = file_destination($destination . $file->filename, $replace);
1583
  }
1584
  catch (RuntimeException $e) {
1585
    drupal_set_message(t('The file %source could not be uploaded because the name is invalid.', array('%source' => $form_field_name)), 'error');
1586
    return FALSE;
1587
  }
1567 1588
  // If file_destination() returns FALSE then $replace == FILE_EXISTS_ERROR and
1568 1589
  // there's an existing file so we need to bail.
1569 1590
  if ($file->destination === FALSE) {
......
2130 2151
 *   'filename', and 'name' members corresponding to the matching files.
2131 2152
 */
2132 2153
function file_scan_directory($dir, $mask, $options = array(), $depth = 0) {
2154
  // Default nomask option.
2155
  $nomask = '/(\.\.?|CVS)$/';
2156

  
2157
  // Overrides the $nomask variable accordingly if $options['nomask'] is set.
2158
  //
2159
  // Allow directories specified in settings.php to be ignored. You can use this
2160
  // to not check for files in common special-purpose directories. For example,
2161
  // node_modules and bower_components. Ignoring irrelevant directories is a
2162
  // performance boost.
2163
  if (!isset($options['nomask'])) {
2164
    $ignore_directories = variable_get(
2165
      'file_scan_ignore_directories',
2166
      array()
2167
    );
2168

  
2169
    foreach ($ignore_directories as $index => $ignore_directory) {
2170
      $ignore_directories[$index] = preg_quote($ignore_directory, '/');
2171
    }
2172

  
2173
    if (!empty($ignore_directories)) {
2174
      $nomask = '/^(\.\.?)|CVS|' . implode('|', $ignore_directories) . '$/';
2175
    }
2176
  }
2177

  
2133 2178
  // Merge in defaults.
2134 2179
  $options += array(
2135
    'nomask' => '/(\.\.?|CVS)$/',
2180
    'nomask' => $nomask,
2136 2181
    'callback' => 0,
2137 2182
    'recurse' => TRUE,
2138 2183
    'key' => 'uri',
drupal7/includes/registry.inc
19 19
 * Does the work for registry_update().
20 20
 */
21 21
function _registry_update() {
22

  
23 22
  // The registry serves as a central autoloader for all classes, including
24 23
  // the database query builders. However, the registry rebuild process
25 24
  // requires write ability to the database, which means having access to the
......
33 32
  require_once DRUPAL_ROOT . '/includes/database/select.inc';
34 33
  require_once DRUPAL_ROOT . '/includes/database/' . $driver . '/query.inc';
35 34

  
35
  // During the first registry rebuild in a request, we check all the files.
36
  // During subsequent rebuilds, we only add new files. It makes the rebuilding
37
  // process faster during installation of modules.
38
  static $check_existing_files = TRUE;
39

  
36 40
  // Get current list of modules and their files.
37 41
  $modules = db_query("SELECT * FROM {system} WHERE type = 'module'")->fetchAll();
38 42
  // Get the list of files we are going to parse.
......
55 59
    $files["$filename"] = array('module' => '', 'weight' => 0);
56 60
  }
57 61

  
62
  // Initialize an empty array for the unchanged files.
63
  $unchanged_files = array();
64

  
58 65
  $transaction = db_transaction();
59 66
  try {
60 67
    // Allow modules to manually modify the list of files before the registry
......
63 70
    // list can then be added to the list of files that the registry will parse,
64 71
    // or modify attributes of a file.
65 72
    drupal_alter('registry_files', $files, $modules);
73

  
66 74
    foreach (registry_get_parsed_files() as $filename => $file) {
67 75
      // Add the hash for those files we have already parsed.
68 76
      if (isset($files[$filename])) {
69
        $files[$filename]['hash'] = $file['hash'];
77
        if ($check_existing_files === TRUE) {
78
          $files[$filename]['hash'] = $file['hash'];
79
        }
80
        else {
81
          // Ignore that file for this request, it has been parsed previously
82
          // and it is unlikely it has changed.
83
          unset($files[$filename]);
84
          $unchanged_files[$filename] = $file;
85
        }
70 86
      }
71 87
      else {
72 88
        // Flush the registry of resources in files that are no longer on disc
......
79 95
          ->execute();
80 96
      }
81 97
    }
98

  
82 99
    $parsed_files = _registry_parse_files($files);
83 100

  
101
    // Add unchanged files to the files.
102
    $files += $unchanged_files;
103

  
84 104
    $unchanged_resources = array();
85 105
    $lookup_cache = array();
86 106
    if ($cache = cache_get('lookup_cache', 'cache_bootstrap')) {
......
89 109
    foreach ($lookup_cache as $key => $file) {
90 110
      // If the file for this cached resource is carried over unchanged from
91 111
      // the last registry build, then we can safely re-cache it.
92
      if ($file && in_array($file, array_keys($files)) && !in_array($file, $parsed_files)) {
112
      if ($file && isset($files[$file]) && !in_array($file, $parsed_files, TRUE)) {
93 113
        $unchanged_resources[$key] = $file;
94 114
      }
95 115
    }
96
    module_implements('', FALSE, TRUE);
97
    _registry_check_code(REGISTRY_RESET_LOOKUP_CACHE);
98 116
  }
99 117
  catch (Exception $e) {
100 118
    $transaction->rollback();
......
102 120
    throw $e;
103 121
  }
104 122

  
123
  module_implements('', FALSE, TRUE);
124
  _registry_check_code(REGISTRY_RESET_LOOKUP_CACHE);
125

  
126
  // During the next run in this request, don't bother re-checking existing
127
  // files.
128
  $check_existing_files = FALSE;
129

  
105 130
  // We have some unchanged resources, warm up the cache - no need to pay
106 131
  // for looking them up again.
107 132
  if (count($unchanged_resources) > 0) {
drupal7/modules/aggregator/aggregator.info
7 7
configure = admin/config/services/aggregator/settings
8 8
stylesheets[all][] = aggregator.css
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/aggregator/tests/aggregator_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/block/block.info
6 6
files[] = block.test
7 7
configure = admin/structure/block
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/block/tests/block_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/block/tests/themes/block_test_theme/block_test_theme.info
13 13
regions[highlighted] = Highlighted
14 14
regions[help] = Help
15 15

  
16
; Information added by Drupal.org packaging script on 2019-01-16
17
version = "7.63"
16
; Information added by Drupal.org packaging script on 2019-03-20
17
version = "7.65"
18 18
project = "drupal"
19
datestamp = "1547681965"
19
datestamp = "1553100118"
drupal7/modules/blog/blog.info
5 5
core = 7.x
6 6
files[] = blog.test
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/book/book.info
7 7
configure = admin/content/book/settings
8 8
stylesheets[all][] = book.css
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/color/color.info
5 5
core = 7.x
6 6
files[] = color.test
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/comment/comment.info
9 9
configure = admin/content/comment
10 10
stylesheets[all][] = comment.css
11 11

  
12
; Information added by Drupal.org packaging script on 2019-01-16
13
version = "7.63"
12
; Information added by Drupal.org packaging script on 2019-03-20
13
version = "7.65"
14 14
project = "drupal"
15
datestamp = "1547681965"
15
datestamp = "1553100118"
drupal7/modules/contact/contact.info
6 6
files[] = contact.test
7 7
configure = admin/structure/contact
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/contextual/contextual.info
5 5
core = 7.x
6 6
files[] = contextual.test
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/dashboard/dashboard.info
7 7
dependencies[] = block
8 8
configure = admin/dashboard/customize
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/dblog/dblog.info
5 5
core = 7.x
6 6
files[] = dblog.test
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/field/field.info
11 11
required = TRUE
12 12
stylesheets[all][] = theme/field.css
13 13

  
14
; Information added by Drupal.org packaging script on 2019-01-16
15
version = "7.63"
14
; Information added by Drupal.org packaging script on 2019-03-20
15
version = "7.65"
16 16
project = "drupal"
17
datestamp = "1547681965"
17
datestamp = "1553100118"
drupal7/modules/field/modules/field_sql_storage/field_sql_storage.info
7 7
files[] = field_sql_storage.test
8 8
required = TRUE
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/field/modules/list/list.info
7 7
dependencies[] = options
8 8
files[] = tests/list.test
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/field/modules/list/tests/list_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/field/modules/number/number.info
6 6
dependencies[] = field
7 7
files[] = number.test
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/field/modules/number/number.test
69 69
    preg_match('|test-entity/manage/(\d+)/edit|', $this->url, $match);
70 70
    $id = $match[1];
71 71
    $this->assertRaw(t('test_entity @id has been created.', array('@id' => $id)), 'Entity was created');
72
    $this->assertRaw(round($value, 2), 'Value is displayed.');
72
    $this->assertRaw($value, 'Value is displayed.');
73 73

  
74 74
    // Try to create entries with more than one decimal separator; assert fail.
75 75
    $wrong_entries = array(
drupal7/modules/field/modules/options/options.info
6 6
dependencies[] = field
7 7
files[] = options.test
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/field/modules/text/text.info
7 7
files[] = text.test
8 8
required = TRUE
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/field/tests/field_test.info
6 6
version = VERSION
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/field_ui/field_ui.info
6 6
dependencies[] = field
7 7
files[] = field_ui.test
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/file/file.field.inc
599 599
    // If the display field is present make sure its unchecked value is saved.
600 600
    $field = field_widget_field($element, $form_state);
601 601
    if (empty($input['display'])) {
602
      $input['display'] = $field['settings']['display_field'] ? 0 : 1;
602
      $input['display'] = !empty($field['settings']['display_field']) ? 0 : 1;
603 603
    }
604 604
  }
605 605

  
drupal7/modules/file/file.info
6 6
dependencies[] = field
7 7
files[] = tests/file.test
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/file/tests/file.test
1875 1875
  }
1876 1876

  
1877 1877
}
1878

  
1879
/**
1880
 * Tests the file_scan_directory() function.
1881
 */
1882
class FileScanDirectory extends FileFieldTestCase {
1883

  
1884
  /**
1885
   * @var string
1886
   */
1887
  protected $path;
1888

  
1889
  /**
1890
   * {@inheritdoc}
1891
   */
1892
  public static function getInfo() {
1893
    return array(
1894
      'name' => 'File ScanDirectory',
1895
      'description' => 'Tests the file_scan_directory() function.',
1896
      'group' => 'File',
1897
    );
1898
  }
1899

  
1900
  /**
1901
   * {@inheritdoc}
1902
   */
1903
  function setUp() {
1904
    parent::setUp();
1905

  
1906
    $this->path = 'modules/file/tests/fixtures/file_scan_ignore';
1907
  }
1908

  
1909
  /**
1910
   * Tests file_scan_directory() obeys 'file_scan_ignore_directories' setting.
1911
   * If nomask is not passed as argument, it should use the default settings.
1912
   * If nomask is passed as argument, it should obey this rule.
1913
   */
1914
  public function testNoMask() {
1915
    $files = file_scan_directory($this->path, '/\.txt$/');
1916
    $this->assertEqual(3, count($files), '3 text files found when not ignoring directories.');
1917

  
1918
    global $conf;
1919
    $conf['file_scan_ignore_directories'] = array('frontend_framework');
1920

  
1921
    $files = file_scan_directory($this->path, '/\.txt$/');
1922
    $this->assertEqual(1, count($files), '1 text files found when ignoring directories called "frontend_framework".');
1923

  
1924
    // Make that directories specified by default still work when a new nomask is provided.
1925
    $files = file_scan_directory($this->path, '/\.txt$/', array('nomask' => '/^c.txt/'));
1926
    $this->assertEqual(2, count($files), '2 text files found when an "nomask" option is passed in.');
1927

  
1928
    // Ensure that the directories in file_scan_ignore_directories are escaped using preg_quote.
1929
    $conf['file_scan_ignore_directories'] = array('frontend.*');
1930
    $files = file_scan_directory($this->path, '/\.txt$/');
1931
    $this->assertEqual(3, count($files), '2 text files found when ignoring a directory that is not there.');
1932
  }
1933

  
1934
}
drupal7/modules/file/tests/file_module_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/filter/filter.info
7 7
required = TRUE
8 8
configure = admin/config/content/formats
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/forum/forum.info
9 9
configure = admin/structure/forum
10 10
stylesheets[all][] = forum.css
11 11

  
12
; Information added by Drupal.org packaging script on 2019-01-16
13
version = "7.63"
12
; Information added by Drupal.org packaging script on 2019-03-20
13
version = "7.65"
14 14
project = "drupal"
15
datestamp = "1547681965"
15
datestamp = "1553100118"
drupal7/modules/help/help.info
5 5
core = 7.x
6 6
files[] = help.test
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/image/image.info
7 7
files[] = image.test
8 8
configure = admin/config/media/image-styles
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/image/tests/image_module_test.info
6 6
files[] = image_module_test.module
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/locale/locale.info
6 6
files[] = locale.test
7 7
configure = admin/config/regional/language
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/locale/tests/locale_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/menu/menu.info
6 6
files[] = menu.test
7 7
configure = admin/structure/menu
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/node/node.info
9 9
configure = admin/structure/types
10 10
stylesheets[all][] = node.css
11 11

  
12
; Information added by Drupal.org packaging script on 2019-01-16
13
version = "7.63"
12
; Information added by Drupal.org packaging script on 2019-03-20
13
version = "7.65"
14 14
project = "drupal"
15
datestamp = "1547681965"
15
datestamp = "1553100118"
drupal7/modules/node/tests/node_access_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/node/tests/node_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/node/tests/node_test_exception.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/openid/openid.info
5 5
core = 7.x
6 6
files[] = openid.test
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/openid/tests/openid_test.info
6 6
dependencies[] = openid
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/overlay/overlay.info
4 4
version = VERSION
5 5
core = 7.x
6 6

  
7
; Information added by Drupal.org packaging script on 2019-01-16
8
version = "7.63"
7
; Information added by Drupal.org packaging script on 2019-03-20
8
version = "7.65"
9 9
project = "drupal"
10
datestamp = "1547681965"
10
datestamp = "1553100118"
drupal7/modules/path/path.info
6 6
files[] = path.test
7 7
configure = admin/config/search/path
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/php/php.info
5 5
core = 7.x
6 6
files[] = php.test
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/poll/poll.info
6 6
files[] = poll.test
7 7
stylesheets[all][] = poll.css
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/profile/profile.info
11 11
; See user_system_info_alter().
12 12
hidden = TRUE
13 13

  
14
; Information added by Drupal.org packaging script on 2019-01-16
15
version = "7.63"
14
; Information added by Drupal.org packaging script on 2019-03-20
15
version = "7.65"
16 16
project = "drupal"
17
datestamp = "1547681965"
17
datestamp = "1553100118"
drupal7/modules/rdf/rdf.info
5 5
core = 7.x
6 6
files[] = rdf.test
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/rdf/tests/rdf_test.info
6 6
hidden = TRUE
7 7
dependencies[] = blog
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/search/search.info
8 8
configure = admin/config/search/settings
9 9
stylesheets[all][] = search.css
10 10

  
11
; Information added by Drupal.org packaging script on 2019-01-16
12
version = "7.63"
11
; Information added by Drupal.org packaging script on 2019-03-20
12
version = "7.65"
13 13
project = "drupal"
14
datestamp = "1547681965"
14
datestamp = "1553100118"
drupal7/modules/search/tests/search_embedded_form.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/search/tests/search_extra_type.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/search/tests/search_node_tags.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/shortcut/shortcut.info
6 6
files[] = shortcut.test
7 7
configure = admin/config/user-interface/shortcut
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/simpletest/drupal_web_test_case.php
3012 3012
    if (!$message) {
3013 3013
      $message = t('Raw "@raw" found', array('@raw' => $raw));
3014 3014
    }
3015
    return $this->assert(strpos($this->drupalGetContent(), $raw) !== FALSE, $message, $group);
3015
    return $this->assert(strpos($this->drupalGetContent(), (string) $raw) !== FALSE, $message, $group);
3016 3016
  }
3017 3017

  
3018 3018
  /**
......
3032 3032
    if (!$message) {
3033 3033
      $message = t('Raw "@raw" not found', array('@raw' => $raw));
3034 3034
    }
3035
    return $this->assert(strpos($this->drupalGetContent(), $raw) === FALSE, $message, $group);
3035
    return $this->assert(strpos($this->drupalGetContent(), (string) $raw) === FALSE, $message, $group);
3036 3036
  }
3037 3037

  
3038 3038
  /**
drupal7/modules/simpletest/simpletest.info
57 57
files[] = tests/upgrade/update.field.test
58 58
files[] = tests/upgrade/update.user.test
59 59

  
60
; Information added by Drupal.org packaging script on 2019-01-16
61
version = "7.63"
60
; Information added by Drupal.org packaging script on 2019-03-20
61
version = "7.65"
62 62
project = "drupal"
63
datestamp = "1547681965"
63
datestamp = "1553100118"
drupal7/modules/simpletest/tests/actions_loop_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/ajax_forms_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/ajax_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/batch_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/boot_test_1.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/boot_test_2.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/bootstrap.test
729 729
   * Tests that the drupal_check_memory_limit() function works as expected.
730 730
   */
731 731
  function testCheckMemoryLimit() {
732
    $memory_limit = ini_get('memory_limit');
733 732
    // Test that a very reasonable amount of memory is available.
734 733
    $this->assertTrue(drupal_check_memory_limit('30MB'), '30MB of memory tested available.');
735 734

  
736
    // Get the available memory and multiply it by two to make it unreasonably
737
    // high.
738
    $twice_avail_memory = ($memory_limit * 2) . 'MB';
739

  
735
    // Test an unlimited memory limit.
740 736
    // The function should always return true if the memory limit is set to -1.
741
    $this->assertTrue(drupal_check_memory_limit($twice_avail_memory, -1), 'drupal_check_memory_limit() returns TRUE when a limit of -1 (none) is supplied');
737
    $this->assertTrue(drupal_check_memory_limit('9999999999YB', -1), 'drupal_check_memory_limit() returns TRUE when a limit of -1 (none) is supplied');
742 738

  
743 739
    // Test that even though we have 30MB of memory available - the function
744 740
    // returns FALSE when given an upper limit for how much memory can be used.
drupal7/modules/simpletest/tests/common_test.info
7 7
stylesheets[print][] = common_test.print.css
8 8
hidden = TRUE
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/simpletest/tests/common_test_cron_helper.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/database_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test.info
7 7
core = 7.x
8 8
hidden = TRUE
9 9

  
10
; Information added by Drupal.org packaging script on 2019-01-16
11
version = "7.63"
10
; Information added by Drupal.org packaging script on 2019-03-20
11
version = "7.65"
12 12
project = "drupal"
13
datestamp = "1547681965"
13
datestamp = "1553100118"
drupal7/modules/simpletest/tests/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/drupal_system_listing_incompatible_test/drupal_system_listing_incompatible_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/entity_cache_test.info
6 6
dependencies[] = entity_cache_test_dependency
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/simpletest/tests/entity_cache_test_dependency.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/entity_crud_hook_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/entity_query_access_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/error_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/file.test
957 957
    $path = file_create_filename($basename, $directory);
958 958
    $this->assertEqual($path, $expected, format_string('Creating a new filepath from %original equals %new.', array('%new' => $path, '%original' => $original)), 'File');
959 959

  
960
    try {
961
      $filename = "a\xFFtest\x80€.txt";
962
      file_create_filename($filename, $directory);
963
      $this->fail('Expected exception not thrown');
964
    }
965
    catch (RuntimeException $e) {
966
      $this->assertEqual("Invalid filename '$filename'", $e->getMessage());
967
    }
968

  
960 969
    // @TODO: Finally we copy a file into a directory several times, to ensure a properly iterating filename suffix.
961 970
  }
962 971

  
......
989 998
    $this->assertNotEqual($path, $destination, 'A new filepath destination is created when filepath destination already exists with FILE_EXISTS_RENAME.', 'File');
990 999
    $path = file_destination($destination, FILE_EXISTS_ERROR);
991 1000
    $this->assertEqual($path, FALSE, 'An error is returned when filepath destination already exists with FILE_EXISTS_ERROR.', 'File');
1001

  
1002
    try {
1003
      file_destination("core/misc/a\xFFtest\x80€.txt", FILE_EXISTS_REPLACE);
1004
      $this->fail('Expected exception not thrown');
1005
    }
1006
    catch (RuntimeException $e) {
1007
      $this->assertEqual("Invalid filename 'a\xFFtest\x80€.txt'", $e->getMessage());
1008
    }
992 1009
  }
993 1010

  
994 1011
  /**
drupal7/modules/simpletest/tests/file_test.info
6 6
files[] = file_test.module
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2019-01-16
10
version = "7.63"
9
; Information added by Drupal.org packaging script on 2019-03-20
10
version = "7.65"
11 11
project = "drupal"
12
datestamp = "1547681965"
12
datestamp = "1553100118"
drupal7/modules/simpletest/tests/filter_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
drupal7/modules/simpletest/tests/form_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2019-01-16
9
version = "7.63"
8
; Information added by Drupal.org packaging script on 2019-03-20
9
version = "7.65"
10 10
project = "drupal"
11
datestamp = "1547681965"
11
datestamp = "1553100118"
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff