Kaynağa Gözat

updated core to 7.65

Bachir Soussi Chiadmi 6 yıl önce
ebeveyn
işleme
6fb9e4806d
100 değiştirilmiş dosya ile 438 ekleme ve 277 silme
  1. 16 0
      CHANGELOG.txt
  2. 1 1
      COPYRIGHT.txt
  3. 5 0
      includes/cache-install.inc
  4. 48 3
      includes/database/database.inc
  5. 30 5
      includes/file.mimetypes.inc
  6. 3 3
      includes/session.inc
  7. 3 3
      modules/aggregator/aggregator.install
  8. 3 3
      modules/aggregator/tests/aggregator_test.module
  9. 3 3
      modules/block/block.install
  10. 3 3
      modules/block/tests/block_test.module
  11. 3 3
      modules/block/tests/themes/block_test_theme/page.tpl.php
  12. 3 3
      modules/blog/blog.install
  13. 3 3
      modules/book/book.install
  14. 3 3
      modules/color/color.install
  15. 3 3
      modules/comment/comment.install
  16. 3 3
      modules/contact/contact.install
  17. 3 3
      modules/contextual/contextual.js
  18. 3 3
      modules/dashboard/dashboard.install
  19. 3 3
      modules/dblog/dblog.install
  20. 3 3
      modules/field/field.info.class.inc
  21. 3 3
      modules/field/modules/field_sql_storage/field_sql_storage.install
  22. 3 3
      modules/field/modules/list/list.install
  23. 3 3
      modules/field/modules/list/tests/list_test.module
  24. 1 1
      modules/field/modules/number/number.install
  25. 3 3
      modules/field/modules/options/options.api.php
  26. 3 3
      modules/field/modules/options/options.module
  27. 3 3
      modules/field/modules/text/text.install
  28. 3 3
      modules/field/tests/field_test.install
  29. 1 1
      modules/field_ui/field_ui.js
  30. 3 3
      modules/file/file.info
  31. 57 0
      modules/file/file.install
  32. 3 3
      modules/file/tests/file_module_test.info
  33. 0 0
      modules/file/tests/file_module_test.module
  34. 0 0
      modules/file/tests/fixtures/file_scan_ignore/frontend_framework/b.txt
  35. 0 0
      modules/file/tests/fixtures/file_scan_ignore/frontend_framework/c.txt
  36. 3 3
      modules/filter/filter.admin.inc
  37. 3 3
      modules/filter/filter.install
  38. 3 3
      modules/forum/forum.install
  39. 3 3
      modules/help/help.module
  40. 3 3
      modules/image/image.install
  41. 3 3
      modules/image/tests/image_module_test.module
  42. 3 3
      modules/locale/locale.install
  43. 3 3
      modules/locale/tests/locale_test.js
  44. 3 3
      modules/menu/menu.install
  45. 3 3
      modules/node/node.install
  46. 3 3
      modules/node/tests/node_access_test.install
  47. 3 3
      modules/node/tests/node_test.module
  48. 3 3
      modules/node/tests/node_test_exception.module
  49. 3 3
      modules/openid/openid.install
  50. 3 3
      modules/openid/tests/openid_test.install
  51. 3 3
      modules/overlay/overlay.install
  52. 3 3
      modules/path/path.js
  53. 3 3
      modules/php/php.install
  54. 3 3
      modules/poll/poll.install
  55. 3 3
      modules/profile/profile.install
  56. 3 3
      modules/rdf/rdf.install
  57. 3 3
      modules/rdf/tests/rdf_test.install
  58. 3 3
      modules/search/search.install
  59. 3 3
      modules/search/tests/search_embedded_form.module
  60. 3 3
      modules/search/tests/search_extra_type.module
  61. 3 3
      modules/shortcut/shortcut-rtl.css
  62. 2 2
      modules/shortcut/shortcut.install
  63. 3 3
      modules/simpletest/files/README.txt
  64. 3 3
      modules/simpletest/simpletest.install
  65. 3 3
      modules/simpletest/tests/actions_loop_test.install
  66. 3 3
      modules/simpletest/tests/ajax_forms_test.module
  67. 3 3
      modules/simpletest/tests/ajax_test.module
  68. 3 3
      modules/simpletest/tests/batch_test.module
  69. 3 3
      modules/simpletest/tests/boot_test_2.info
  70. 2 6
      modules/simpletest/tests/bootstrap.test
  71. 3 3
      modules/simpletest/tests/cache.test
  72. 3 3
      modules/simpletest/tests/common_test.module
  73. 3 3
      modules/simpletest/tests/common_test_cron_helper.module
  74. 3 3
      modules/simpletest/tests/database_test.install
  75. 3 3
      modules/simpletest/tests/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info
  76. 3 3
      modules/simpletest/tests/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.module
  77. 3 3
      modules/simpletest/tests/drupal_system_listing_incompatible_test/drupal_system_listing_incompatible_test.module
  78. 3 3
      modules/simpletest/tests/entity_cache_test.module
  79. 3 3
      modules/simpletest/tests/entity_cache_test_dependency.module
  80. 3 3
      modules/simpletest/tests/entity_crud_hook_test.module
  81. 3 3
      modules/simpletest/tests/entity_query_access_test.module
  82. 17 0
      modules/simpletest/tests/error_test.module
  83. 3 3
      modules/simpletest/tests/file_test.info
  84. 3 3
      modules/simpletest/tests/file_test.module
  85. 3 3
      modules/simpletest/tests/filter_test.module
  86. 3 3
      modules/simpletest/tests/form_test.module
  87. 3 3
      modules/simpletest/tests/image_test.module
  88. 3 3
      modules/simpletest/tests/menu_test.module
  89. 3 3
      modules/simpletest/tests/module_test.install
  90. 3 3
      modules/simpletest/tests/path_test.module
  91. 3 3
      modules/simpletest/tests/psr_0_test/psr_0_test.module
  92. 3 3
      modules/simpletest/tests/registry.test
  93. 3 3
      modules/simpletest/tests/requirements1_test.install
  94. 3 3
      modules/simpletest/tests/requirements2_test.module
  95. 3 3
      modules/simpletest/tests/session_test.module
  96. 3 3
      modules/simpletest/tests/system_dependencies_test.module
  97. 3 3
      modules/simpletest/tests/system_incompatible_core_version_dependencies_test.module
  98. 3 3
      modules/simpletest/tests/system_incompatible_core_version_test.module
  99. 3 3
      modules/simpletest/tests/system_incompatible_module_version_dependencies_test.module
  100. 3 3
      modules/simpletest/tests/system_incompatible_module_version_test.module

+ 16 - 0
CHANGELOG.txt

@@ -1,3 +1,19 @@
+Drupal 7.xx, xxxx-xx-xx (development version)
+-----------------------
+
+Drupal 7.65, 2019-03-20
+-----------------------
+- Fixed security issues:
+   - SA-CORE-2019-004
+
+Drupal 7.64, 2019-02-06
+-----------------------
+- [regression] Unset the 'host' header in drupal_http_request() during redirect
+- Fixed: 7.x does not have Phar protection and Phar tests are failing on Drupal 7
+- Fixed: Notice: Undefined index: display_field in file_field_widget_value() (line 582 of /module/file/file.field.inc)
+- Performance improvement: Registry rebuild should not parse the same file twice in the same request
+- Fixed _registry_update() to clear caches after transaction is committed
+
 Drupal 7.63, 2019-01-16
 -----------------------
 - Fixed a fatal error for some Drush users introduced by SA-CORE-2019-002.

+ 1 - 1
COPYRIGHT.txt

@@ -8,7 +8,7 @@
 /**
  * The current system version.
  */
-define('VERSION', '7.63');
+define('VERSION', '7.65');
 
 /**
  * Core API compatibility.

+ 5 - 0
includes/cache-install.inc

@@ -1094,6 +1094,11 @@ function drupal_http_request($url, array $options = array()) {
       elseif ($options['max_redirects']) {
         // Redirect to the new location.
         $options['max_redirects']--;
+
+        // We need to unset the 'Host' header
+        // as we are redirecting to a new location.
+        unset($options['headers']['Host']);
+
         $result = drupal_http_request($location, $options);
         $result->redirect_code = $code;
       }

+ 48 - 3
includes/database/database.inc

@@ -993,8 +993,15 @@ function file_build_uri($path) {
  * @return
  *   The destination filepath, or FALSE if the file already exists
  *   and FILE_EXISTS_ERROR is specified.
+ *
+ * @throws RuntimeException
+ *   Thrown if the filename contains invalid UTF-8.
  */
 function file_destination($destination, $replace) {
+  $basename = drupal_basename($destination);
+  if (!drupal_validate_utf8($basename)) {
+    throw new RuntimeException(sprintf("Invalid filename '%s'", $basename));
+  }
   if (file_exists($destination)) {
     switch ($replace) {
       case FILE_EXISTS_REPLACE:
@@ -1002,7 +1009,6 @@ function file_destination($destination, $replace) {
         break;
 
       case FILE_EXISTS_RENAME:
-        $basename = drupal_basename($destination);
         $directory = drupal_dirname($destination);
         $destination = file_create_filename($basename, $directory);
         break;
@@ -1218,11 +1224,20 @@ function file_unmunge_filename($filename) {
  * @return
  *   File path consisting of $directory and a unique filename based off
  *   of $basename.
+ *
+ * @throws RuntimeException
+ *   Thrown if the $basename is not valid UTF-8 or another error occurs
+ *   stripping control characters.
  */
 function file_create_filename($basename, $directory) {
+  $original = $basename;
   // Strip control characters (ASCII value < 32). Though these are allowed in
   // some filesystems, not many applications handle them well.
   $basename = preg_replace('/[\x00-\x1F]/u', '_', $basename);
+  if (preg_last_error() !== PREG_NO_ERROR) {
+    throw new RuntimeException(sprintf("Invalid filename '%s'", $original));
+  }
+
   if (substr(PHP_OS, 0, 3) == 'WIN') {
     // These characters are not allowed in Windows filenames
     $basename = str_replace(array(':', '*', '?', '"', '<', '>', '|'), '_', $basename);
@@ -1563,7 +1578,13 @@ function file_save_upload($form_field_name, $validators = array(), $destination
   if (substr($destination, -1) != '/') {
     $destination .= '/';
   }
-  $file->destination = file_destination($destination . $file->filename, $replace);
+  try {
+    $file->destination = file_destination($destination . $file->filename, $replace);
+  }
+  catch (RuntimeException $e) {
+    drupal_set_message(t('The file %source could not be uploaded because the name is invalid.', array('%source' => $form_field_name)), 'error');
+    return FALSE;
+  }
   // If file_destination() returns FALSE then $replace == FILE_EXISTS_ERROR and
   // there's an existing file so we need to bail.
   if ($file->destination === FALSE) {
@@ -2130,9 +2151,33 @@ function file_download_access($uri) {
  *   'filename', and 'name' members corresponding to the matching files.
  */
 function file_scan_directory($dir, $mask, $options = array(), $depth = 0) {
+  // Default nomask option.
+  $nomask = '/(\.\.?|CVS)$/';
+
+  // Overrides the $nomask variable accordingly if $options['nomask'] is set.
+  //
+  // Allow directories specified in settings.php to be ignored. You can use this
+  // to not check for files in common special-purpose directories. For example,
+  // node_modules and bower_components. Ignoring irrelevant directories is a
+  // performance boost.
+  if (!isset($options['nomask'])) {
+    $ignore_directories = variable_get(
+      'file_scan_ignore_directories',
+      array()
+    );
+
+    foreach ($ignore_directories as $index => $ignore_directory) {
+      $ignore_directories[$index] = preg_quote($ignore_directory, '/');
+    }
+
+    if (!empty($ignore_directories)) {
+      $nomask = '/^(\.\.?)|CVS|' . implode('|', $ignore_directories) . '$/';
+    }
+  }
+
   // Merge in defaults.
   $options += array(
-    'nomask' => '/(\.\.?|CVS)$/',
+    'nomask' => $nomask,
     'callback' => 0,
     'recurse' => TRUE,
     'key' => 'uri',

+ 30 - 5
includes/file.mimetypes.inc

@@ -19,7 +19,6 @@
  * Does the work for registry_update().
  */
 function _registry_update() {
-
   // The registry serves as a central autoloader for all classes, including
   // the database query builders. However, the registry rebuild process
   // requires write ability to the database, which means having access to the
@@ -33,6 +32,11 @@ function _registry_update() {
   require_once DRUPAL_ROOT . '/includes/database/select.inc';
   require_once DRUPAL_ROOT . '/includes/database/' . $driver . '/query.inc';
 
+  // During the first registry rebuild in a request, we check all the files.
+  // During subsequent rebuilds, we only add new files. It makes the rebuilding
+  // process faster during installation of modules.
+  static $check_existing_files = TRUE;
+
   // Get current list of modules and their files.
   $modules = db_query("SELECT * FROM {system} WHERE type = 'module'")->fetchAll();
   // Get the list of files we are going to parse.
@@ -55,6 +59,9 @@ function _registry_update() {
     $files["$filename"] = array('module' => '', 'weight' => 0);
   }
 
+  // Initialize an empty array for the unchanged files.
+  $unchanged_files = array();
+
   $transaction = db_transaction();
   try {
     // Allow modules to manually modify the list of files before the registry
@@ -63,10 +70,19 @@ function _registry_update() {
     // list can then be added to the list of files that the registry will parse,
     // or modify attributes of a file.
     drupal_alter('registry_files', $files, $modules);
+
     foreach (registry_get_parsed_files() as $filename => $file) {
       // Add the hash for those files we have already parsed.
       if (isset($files[$filename])) {
-        $files[$filename]['hash'] = $file['hash'];
+        if ($check_existing_files === TRUE) {
+          $files[$filename]['hash'] = $file['hash'];
+        }
+        else {
+          // Ignore that file for this request, it has been parsed previously
+          // and it is unlikely it has changed.
+          unset($files[$filename]);
+          $unchanged_files[$filename] = $file;
+        }
       }
       else {
         // Flush the registry of resources in files that are no longer on disc
@@ -79,8 +95,12 @@ function _registry_update() {
           ->execute();
       }
     }
+
     $parsed_files = _registry_parse_files($files);
 
+    // Add unchanged files to the files.
+    $files += $unchanged_files;
+
     $unchanged_resources = array();
     $lookup_cache = array();
     if ($cache = cache_get('lookup_cache', 'cache_bootstrap')) {
@@ -89,12 +109,10 @@ function _registry_update() {
     foreach ($lookup_cache as $key => $file) {
       // If the file for this cached resource is carried over unchanged from
       // the last registry build, then we can safely re-cache it.
-      if ($file && in_array($file, array_keys($files)) && !in_array($file, $parsed_files)) {
+      if ($file && isset($files[$file]) && !in_array($file, $parsed_files, TRUE)) {
         $unchanged_resources[$key] = $file;
       }
     }
-    module_implements('', FALSE, TRUE);
-    _registry_check_code(REGISTRY_RESET_LOOKUP_CACHE);
   }
   catch (Exception $e) {
     $transaction->rollback();
@@ -102,6 +120,13 @@ function _registry_update() {
     throw $e;
   }
 
+  module_implements('', FALSE, TRUE);
+  _registry_check_code(REGISTRY_RESET_LOOKUP_CACHE);
+
+  // During the next run in this request, don't bother re-checking existing
+  // files.
+  $check_existing_files = FALSE;
+
   // We have some unchanged resources, warm up the cache - no need to pay
   // for looking them up again.
   if (count($unchanged_resources) > 0) {

+ 3 - 3
includes/session.inc

@@ -7,7 +7,7 @@ files[] = aggregator.test
 configure = admin/config/services/aggregator/settings
 stylesheets[all][] = aggregator.css
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/aggregator/aggregator.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/aggregator/tests/aggregator_test.module

@@ -6,7 +6,7 @@ core = 7.x
 files[] = block.test
 configure = admin/structure/block
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/block/block.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/block/tests/block_test.module

@@ -13,7 +13,7 @@ regions[footer] = Footer
 regions[highlighted] = Highlighted
 regions[help] = Help
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/block/tests/themes/block_test_theme/page.tpl.php

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 files[] = blog.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/blog/blog.install

@@ -7,7 +7,7 @@ files[] = book.test
 configure = admin/content/book/settings
 stylesheets[all][] = book.css
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/book/book.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 files[] = color.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/color/color.install

@@ -9,7 +9,7 @@ files[] = comment.test
 configure = admin/content/comment
 stylesheets[all][] = comment.css
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/comment/comment.install

@@ -6,7 +6,7 @@ core = 7.x
 files[] = contact.test
 configure = admin/structure/contact
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/contact/contact.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 files[] = contextual.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/contextual/contextual.js

@@ -7,7 +7,7 @@ files[] = dashboard.test
 dependencies[] = block
 configure = admin/dashboard/customize
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/dashboard/dashboard.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 files[] = dblog.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/dblog/dblog.install

@@ -11,7 +11,7 @@ dependencies[] = field_sql_storage
 required = TRUE
 stylesheets[all][] = theme/field.css
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/field/field.info.class.inc

@@ -7,7 +7,7 @@ dependencies[] = field
 files[] = field_sql_storage.test
 required = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/field/modules/field_sql_storage/field_sql_storage.install

@@ -7,7 +7,7 @@ dependencies[] = field
 dependencies[] = options
 files[] = tests/list.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/field/modules/list/list.install

@@ -5,7 +5,7 @@ package = Testing
 version = VERSION
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/field/modules/list/tests/list_test.module

@@ -6,7 +6,7 @@ core = 7.x
 dependencies[] = field
 files[] = number.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 1 - 1
modules/field/modules/number/number.install

@@ -69,7 +69,7 @@ class NumberFieldTestCase extends DrupalWebTestCase {
     preg_match('|test-entity/manage/(\d+)/edit|', $this->url, $match);
     $id = $match[1];
     $this->assertRaw(t('test_entity @id has been created.', array('@id' => $id)), 'Entity was created');
-    $this->assertRaw(round($value, 2), 'Value is displayed.');
+    $this->assertRaw($value, 'Value is displayed.');
 
     // Try to create entries with more than one decimal separator; assert fail.
     $wrong_entries = array(

+ 3 - 3
modules/field/modules/options/options.api.php

@@ -6,7 +6,7 @@ core = 7.x
 dependencies[] = field
 files[] = options.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/field/modules/options/options.module

@@ -7,7 +7,7 @@ dependencies[] = field
 files[] = text.test
 required = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/field/modules/text/text.install

@@ -6,7 +6,7 @@ files[] = field_test.entity.inc
 version = VERSION
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/field/tests/field_test.install

@@ -6,7 +6,7 @@ core = 7.x
 dependencies[] = field
 files[] = field_ui.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 1 - 1
modules/field_ui/field_ui.js

@@ -599,7 +599,7 @@ function file_field_widget_value($element, $input = FALSE, $form_state) {
     // If the display field is present make sure its unchecked value is saved.
     $field = field_widget_field($element, $form_state);
     if (empty($input['display'])) {
-      $input['display'] = $field['settings']['display_field'] ? 0 : 1;
+      $input['display'] = !empty($field['settings']['display_field']) ? 0 : 1;
     }
   }
 

+ 3 - 3
modules/file/file.info

@@ -6,7 +6,7 @@ core = 7.x
 dependencies[] = field
 files[] = tests/file.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 57 - 0
modules/file/file.install

@@ -1875,3 +1875,60 @@ class FileFieldAnonymousSubmission extends FileFieldTestCase {
   }
 
 }
+
+/**
+ * Tests the file_scan_directory() function.
+ */
+class FileScanDirectory extends FileFieldTestCase {
+
+  /**
+   * @var string
+   */
+  protected $path;
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function getInfo() {
+    return array(
+      'name' => 'File ScanDirectory',
+      'description' => 'Tests the file_scan_directory() function.',
+      'group' => 'File',
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  function setUp() {
+    parent::setUp();
+
+    $this->path = 'modules/file/tests/fixtures/file_scan_ignore';
+  }
+
+  /**
+   * Tests file_scan_directory() obeys 'file_scan_ignore_directories' setting.
+   * If nomask is not passed as argument, it should use the default settings.
+   * If nomask is passed as argument, it should obey this rule.
+   */
+  public function testNoMask() {
+    $files = file_scan_directory($this->path, '/\.txt$/');
+    $this->assertEqual(3, count($files), '3 text files found when not ignoring directories.');
+
+    global $conf;
+    $conf['file_scan_ignore_directories'] = array('frontend_framework');
+
+    $files = file_scan_directory($this->path, '/\.txt$/');
+    $this->assertEqual(1, count($files), '1 text files found when ignoring directories called "frontend_framework".');
+
+    // Make that directories specified by default still work when a new nomask is provided.
+    $files = file_scan_directory($this->path, '/\.txt$/', array('nomask' => '/^c.txt/'));
+    $this->assertEqual(2, count($files), '2 text files found when an "nomask" option is passed in.');
+
+    // Ensure that the directories in file_scan_ignore_directories are escaped using preg_quote.
+    $conf['file_scan_ignore_directories'] = array('frontend.*');
+    $files = file_scan_directory($this->path, '/\.txt$/');
+    $this->assertEqual(3, count($files), '2 text files found when ignoring a directory that is not there.');
+  }
+
+}

+ 3 - 3
modules/file/tests/file_module_test.info

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 0 - 0
modules/file/tests/file_module_test.module


+ 0 - 0
modules/file/tests/fixtures/file_scan_ignore/frontend_framework/b.txt


+ 0 - 0
modules/file/tests/fixtures/file_scan_ignore/frontend_framework/c.txt


+ 3 - 3
modules/filter/filter.admin.inc

@@ -7,7 +7,7 @@ files[] = filter.test
 required = TRUE
 configure = admin/config/content/formats
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/filter/filter.install

@@ -9,7 +9,7 @@ files[] = forum.test
 configure = admin/structure/forum
 stylesheets[all][] = forum.css
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/forum/forum.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 files[] = help.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/help/help.module

@@ -7,7 +7,7 @@ dependencies[] = file
 files[] = image.test
 configure = admin/config/media/image-styles
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/image/image.install

@@ -6,7 +6,7 @@ core = 7.x
 files[] = image_module_test.module
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/image/tests/image_module_test.module

@@ -6,7 +6,7 @@ core = 7.x
 files[] = locale.test
 configure = admin/config/regional/language
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/locale/locale.install

@@ -5,7 +5,7 @@ package = Testing
 version = VERSION
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/locale/tests/locale_test.js

@@ -6,7 +6,7 @@ core = 7.x
 files[] = menu.test
 configure = admin/structure/menu
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/menu/menu.install

@@ -9,7 +9,7 @@ required = TRUE
 configure = admin/structure/types
 stylesheets[all][] = node.css
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/node/node.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/node/tests/node_access_test.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/node/tests/node_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/node/tests/node_test_exception.module

@@ -5,7 +5,7 @@ package = Core
 core = 7.x
 files[] = openid.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/openid/openid.install

@@ -6,7 +6,7 @@ core = 7.x
 dependencies[] = openid
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/openid/tests/openid_test.install

@@ -4,7 +4,7 @@ package = Core
 version = VERSION
 core = 7.x
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/overlay/overlay.install

@@ -6,7 +6,7 @@ core = 7.x
 files[] = path.test
 configure = admin/config/search/path
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/path/path.js

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 files[] = php.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/php/php.install

@@ -6,7 +6,7 @@ core = 7.x
 files[] = poll.test
 stylesheets[all][] = poll.css
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/poll/poll.install

@@ -11,7 +11,7 @@ configure = admin/config/people/profile
 ; See user_system_info_alter().
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/profile/profile.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 files[] = rdf.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/rdf/rdf.install

@@ -6,7 +6,7 @@ core = 7.x
 hidden = TRUE
 dependencies[] = blog
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/rdf/tests/rdf_test.install

@@ -8,7 +8,7 @@ files[] = search.test
 configure = admin/config/search/settings
 stylesheets[all][] = search.css
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/search/search.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/search/tests/search_embedded_form.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/search/tests/search_extra_type.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/shortcut/shortcut-rtl.css

@@ -6,7 +6,7 @@ core = 7.x
 files[] = shortcut.test
 configure = admin/config/user-interface/shortcut
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 2 - 2
modules/shortcut/shortcut.install

@@ -3012,7 +3012,7 @@ class DrupalWebTestCase extends DrupalTestCase {
     if (!$message) {
       $message = t('Raw "@raw" found', array('@raw' => $raw));
     }
-    return $this->assert(strpos($this->drupalGetContent(), $raw) !== FALSE, $message, $group);
+    return $this->assert(strpos($this->drupalGetContent(), (string) $raw) !== FALSE, $message, $group);
   }
 
   /**
@@ -3032,7 +3032,7 @@ class DrupalWebTestCase extends DrupalTestCase {
     if (!$message) {
       $message = t('Raw "@raw" not found', array('@raw' => $raw));
     }
-    return $this->assert(strpos($this->drupalGetContent(), $raw) === FALSE, $message, $group);
+    return $this->assert(strpos($this->drupalGetContent(), (string) $raw) === FALSE, $message, $group);
   }
 
   /**

+ 3 - 3
modules/simpletest/files/README.txt

@@ -57,7 +57,7 @@ files[] = tests/upgrade/update.trigger.test
 files[] = tests/upgrade/update.field.test
 files[] = tests/upgrade/update.user.test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/simpletest.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/actions_loop_test.install

@@ -5,7 +5,7 @@ package = Testing
 version = VERSION
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/ajax_forms_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/ajax_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/batch_test.module

@@ -5,7 +5,7 @@ package = Testing
 version = VERSION
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/boot_test_2.info

@@ -5,7 +5,7 @@ package = Testing
 version = VERSION
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 2 - 6
modules/simpletest/tests/bootstrap.test

@@ -729,16 +729,12 @@ class BootstrapMiscTestCase extends DrupalUnitTestCase {
    * Tests that the drupal_check_memory_limit() function works as expected.
    */
   function testCheckMemoryLimit() {
-    $memory_limit = ini_get('memory_limit');
     // Test that a very reasonable amount of memory is available.
     $this->assertTrue(drupal_check_memory_limit('30MB'), '30MB of memory tested available.');
 
-    // Get the available memory and multiply it by two to make it unreasonably
-    // high.
-    $twice_avail_memory = ($memory_limit * 2) . 'MB';
-
+    // Test an unlimited memory limit.
     // The function should always return true if the memory limit is set to -1.
-    $this->assertTrue(drupal_check_memory_limit($twice_avail_memory, -1), 'drupal_check_memory_limit() returns TRUE when a limit of -1 (none) is supplied');
+    $this->assertTrue(drupal_check_memory_limit('9999999999YB', -1), 'drupal_check_memory_limit() returns TRUE when a limit of -1 (none) is supplied');
 
     // Test that even though we have 30MB of memory available - the function
     // returns FALSE when given an upper limit for how much memory can be used.

+ 3 - 3
modules/simpletest/tests/cache.test

@@ -7,7 +7,7 @@ stylesheets[all][] = common_test.css
 stylesheets[print][] = common_test.print.css
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/common_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/common_test_cron_helper.module

@@ -5,7 +5,7 @@ package = Testing
 version = VERSION
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/database_test.install

@@ -7,7 +7,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/drupal_system_listing_incompatible_test/drupal_system_listing_incompatible_test.module

@@ -6,7 +6,7 @@ core = 7.x
 dependencies[] = entity_cache_test_dependency
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/entity_cache_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/entity_cache_test_dependency.module

@@ -5,7 +5,7 @@ package = Testing
 version = VERSION
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/entity_crud_hook_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/entity_query_access_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 17 - 0
modules/simpletest/tests/error_test.module

@@ -957,6 +957,15 @@ class FileDirectoryTest extends FileTestCase {
     $path = file_create_filename($basename, $directory);
     $this->assertEqual($path, $expected, format_string('Creating a new filepath from %original equals %new.', array('%new' => $path, '%original' => $original)), 'File');
 
+    try {
+      $filename = "a\xFFtest\x80€.txt";
+      file_create_filename($filename, $directory);
+      $this->fail('Expected exception not thrown');
+    }
+    catch (RuntimeException $e) {
+      $this->assertEqual("Invalid filename '$filename'", $e->getMessage());
+    }
+
     // @TODO: Finally we copy a file into a directory several times, to ensure a properly iterating filename suffix.
   }
 
@@ -989,6 +998,14 @@ class FileDirectoryTest extends FileTestCase {
     $this->assertNotEqual($path, $destination, 'A new filepath destination is created when filepath destination already exists with FILE_EXISTS_RENAME.', 'File');
     $path = file_destination($destination, FILE_EXISTS_ERROR);
     $this->assertEqual($path, FALSE, 'An error is returned when filepath destination already exists with FILE_EXISTS_ERROR.', 'File');
+
+    try {
+      file_destination("core/misc/a\xFFtest\x80€.txt", FILE_EXISTS_REPLACE);
+      $this->fail('Expected exception not thrown');
+    }
+    catch (RuntimeException $e) {
+      $this->assertEqual("Invalid filename 'a\xFFtest\x80€.txt'", $e->getMessage());
+    }
   }
 
   /**

+ 3 - 3
modules/simpletest/tests/file_test.info

@@ -6,7 +6,7 @@ core = 7.x
 files[] = file_test.module
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/file_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/filter_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/form_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/image_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/menu_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/module_test.install

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/path_test.module

@@ -5,7 +5,7 @@ core = 7.x
 hidden = TRUE
 package = Testing
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/psr_0_test/psr_0_test.module

@@ -5,7 +5,7 @@ core = 7.x
 hidden = TRUE
 package = Testing
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/registry.test

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/requirements1_test.install

@@ -7,7 +7,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/requirements2_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/session_test.module

@@ -6,7 +6,7 @@ core = 7.x
 hidden = TRUE
 dependencies[] = _missing_dependency
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/system_dependencies_test.module

@@ -6,7 +6,7 @@ core = 7.x
 hidden = TRUE
 dependencies[] = system_incompatible_core_version_test
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/system_incompatible_core_version_dependencies_test.module

@@ -5,7 +5,7 @@ version = VERSION
 core = 5.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/system_incompatible_core_version_test.module

@@ -7,7 +7,7 @@ hidden = TRUE
 ; system_incompatible_module_version_test declares version 1.0
 dependencies[] = system_incompatible_module_version_test (>2.0)
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/system_incompatible_module_version_dependencies_test.module

@@ -5,7 +5,7 @@ version = 1.0
 core = 7.x
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

+ 3 - 3
modules/simpletest/tests/system_incompatible_module_version_test.module

@@ -6,7 +6,7 @@ core = 7.x
 hidden = TRUE
 dependencies[] = drupal:filter
 
-; Information added by Drupal.org packaging script on 2019-01-16
-version = "7.63"
+; Information added by Drupal.org packaging script on 2019-03-20
+version = "7.65"
 project = "drupal"
-datestamp = "1547681965"
+datestamp = "1553100118"

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor