Projet

Général

Profil

Révision cf490feb

Ajouté par Assos Assos il y a environ 6 ans

Update to 7.57

Voir les différences:

drupal7/CHANGELOG.txt
1 1

  
2
Drupal 7.57, 2018-02-21
3
-----------------------
4
- Fixed security issues (multiple vulnerabilities). See SA-CORE-2018-001.
5

  
2 6
Drupal 7.56, 2017-06-21
3 7
-----------------------
4 8
- Fixed security issues (access bypass). See SA-CORE-2017-003.
drupal7/includes/bootstrap.inc
8 8
/**
9 9
 * The current system version.
10 10
 */
11
define('VERSION', '7.56');
11
define('VERSION', '7.57');
12 12

  
13 13
/**
14 14
 * Core API compatibility.
drupal7/includes/common.inc
2236 2236
    'prefix' => ''
2237 2237
  );
2238 2238

  
2239
  // Determine whether this is an external link, but ensure that the current
2240
  // path is always treated as internal by default (to prevent external link
2241
  // injection vulnerabilities).
2239 2242
  if (!isset($options['external'])) {
2240
    $options['external'] = url_is_external($path);
2243
    $options['external'] = $path === $_GET['q'] ? FALSE : url_is_external($path);
2241 2244
  }
2242 2245

  
2243 2246
  // Preserve the original path before altering or aliasing.
drupal7/misc/drupal.js
27 27
};
28 28
$.fn.init.prototype = jquery_init.prototype;
29 29

  
30
/**
31
 * Pre-filter Ajax requests to guard against XSS attacks.
32
 *
33
 * See https://github.com/jquery/jquery/issues/2432
34
 */
35
if ($.ajaxPrefilter) {
36
  // For newer versions of jQuery, use an Ajax prefilter to prevent
37
  // auto-executing script tags from untrusted domains. This is similar to the
38
  // fix that is built in to jQuery 3.0 and higher.
39
  $.ajaxPrefilter(function (s) {
40
    if (s.crossDomain) {
41
      s.contents.script = false;
42
    }
43
  });
44
}
45
else if ($.httpData) {
46
  // For the version of jQuery that ships with Drupal core, override
47
  // jQuery.httpData to prevent auto-detecting "script" data types from
48
  // untrusted domains.
49
  var jquery_httpData = $.httpData;
50
  $.httpData = function (xhr, type, s) {
51
    // @todo Consider backporting code from newer jQuery versions to check for
52
    //   a cross-domain request here, rather than using Drupal.urlIsLocal() to
53
    //   block scripts from all URLs that are not on the same site.
54
    if (!type && !Drupal.urlIsLocal(s.url)) {
55
      var content_type = xhr.getResponseHeader('content-type') || '';
56
      if (content_type.indexOf('javascript') >= 0) {
57
        // Default to a safe data type.
58
        type = 'text';
59
      }
60
    }
61
    return jquery_httpData.call(this, xhr, type, s);
62
  };
63
  $.httpData.prototype = jquery_httpData.prototype;
64
}
65

  
30 66
/**
31 67
 * Attach all registered behaviors to a page element.
32 68
 *
......
137 173
 */
138 174
Drupal.checkPlain = function (str) {
139 175
  var character, regex,
140
      replace = { '&': '&amp;', '"': '&quot;', '<': '&lt;', '>': '&gt;' };
176
      replace = { '&': '&amp;', "'": '&#39;', '"': '&quot;', '<': '&lt;', '>': '&gt;' };
141 177
  str = String(str);
142 178
  for (character in replace) {
143 179
    if (replace.hasOwnProperty(character)) {
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
17
version = "7.56"
16
; Information added by Drupal.org packaging script on 2018-02-21
17
version = "7.57"
18 18
project = "drupal"
19
datestamp = "1498069849"
19
datestamp = "1519235152"
20 20

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
13
version = "7.56"
12
; Information added by Drupal.org packaging script on 2018-02-21
13
version = "7.57"
14 14
project = "drupal"
15
datestamp = "1498069849"
15
datestamp = "1519235152"
16 16

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
15
version = "7.56"
14
; Information added by Drupal.org packaging script on 2018-02-21
15
version = "7.57"
16 16
project = "drupal"
17
datestamp = "1498069849"
17
datestamp = "1519235152"
18 18

  
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
drupal7/modules/file/file.module
140 140
  }
141 141

  
142 142
  // Find out which (if any) fields of this type contain the file.
143
  $references = file_get_file_references($file, NULL, FIELD_LOAD_CURRENT, $field_type);
143
  $references = file_get_file_references($file, NULL, FIELD_LOAD_CURRENT, $field_type, FALSE);
144 144

  
145 145
  // Stop processing if there are no references in order to avoid returning
146 146
  // headers for files controlled by other modules. Make an exception for
......
1067 1067
 * @param $field_type
1068 1068
 *   (optional) The name of a field type. If given, limits the reference check
1069 1069
 *   to fields of the given type.
1070
 * @param $check_access
1071
 *   (optional) A boolean that specifies whether the permissions of the current
1072
 *   user should be checked when retrieving references. If FALSE, all
1073
 *   references to the file are returned. If TRUE, only references from
1074
 *   entities that the current user has access to are returned. Defaults to
1075
 *   TRUE for backwards compatibility reasons, but FALSE is recommended for
1076
 *   most situations.
1070 1077
 *
1071 1078
 * @return
1072 1079
 *   An integer value.
1073 1080
 */
1074
function file_get_file_references($file, $field = NULL, $age = FIELD_LOAD_REVISION, $field_type = 'file') {
1081
function file_get_file_references($file, $field = NULL, $age = FIELD_LOAD_REVISION, $field_type = 'file', $check_access = TRUE) {
1075 1082
  $references = drupal_static(__FUNCTION__, array());
1076 1083
  $fields = isset($field) ? array($field['field_name'] => $field) : field_info_fields();
1077 1084

  
......
1082 1089
      $query
1083 1090
        ->fieldCondition($file_field, 'fid', $file->fid)
1084 1091
        ->age($age);
1092
      if (!$check_access) {
1093
        // Neutralize the 'entity_field_access' query tag added by
1094
        // field_sql_storage_field_storage_query().
1095
        $query->addTag('DANGEROUS_ACCESS_CHECK_OPT_OUT');
1096
      }
1085 1097
      $references[$field_name] = $query->execute();
1086 1098
    }
1087 1099
  }
drupal7/modules/file/tests/file.test
1626 1626
    $this->drupalGet($file_url);
1627 1627
    $this->assertResponse(403, 'Confirmed that another anonymous user cannot access the permanent file when it is referenced by an unpublished node.');
1628 1628
  }
1629

  
1630
  /**
1631
   * Tests file access for private nodes when file download access is granted.
1632
   */
1633
  function testPrivateFileDownloadAccessGranted() {
1634
    // Tell file_module_test to attempt to grant access to all private files,
1635
    // and ensure that it is doing so correctly.
1636
    $test_file = $this->getTestFile('text');
1637
    $uri = file_unmanaged_move($test_file->uri, 'private://');
1638
    $file_url = file_create_url($uri);
1639
    $this->drupalGet($file_url);
1640
    $this->assertResponse(403, 'Access is not granted to an arbitrary private file by default.');
1641
    variable_set('file_module_test_grant_download_access', TRUE);
1642
    $this->drupalGet($file_url);
1643
    $this->assertResponse(200, 'Access is granted to an arbitrary private file after a module grants access to all private files in hook_file_download().');
1644

  
1645
    // Create a public node with a file attached.
1646
    $type_name = 'page';
1647
    $field_name = strtolower($this->randomName());
1648
    $this->createFileField($field_name, $type_name, array('uri_scheme' => 'private'));
1649
    $test_file = $this->getTestFile('text');
1650
    $nid = $this->uploadNodeFile($test_file, $field_name, $type_name, TRUE, array('private' => FALSE));
1651
    $node = node_load($nid, NULL, TRUE);
1652
    $file_url = file_create_url($node->{$field_name}[LANGUAGE_NONE][0]['uri']);
1653

  
1654
    // Unpublish the node and ensure that only administrators (not anonymous
1655
    // users) can access the node and download the file; the expectation is
1656
    // that the File module's hook_file_download() implementation will deny
1657
    // access and thereby override the file_module_test module's access grant.
1658
    $node->status = NODE_NOT_PUBLISHED;
1659
    node_save($node);
1660
    $this->drupalLogin($this->admin_user);
1661
    $this->drupalGet("node/$nid");
1662
    $this->assertResponse(200, 'Administrator can access the unpublished node.');
1663
    $this->drupalGet($file_url);
1664
    $this->assertResponse(200, 'Administrator can download the file attached to the unpublished node.');
1665
    $this->drupalLogOut();
1666
    $this->drupalGet("node/$nid");
1667
    $this->assertResponse(403, 'Anonymous user cannot access the unpublished node.');
1668
    $this->drupalGet($file_url);
1669
    $this->assertResponse(403, 'Anonymous user cannot download the file attached to the unpublished node.');
1670

  
1671
    // Re-publish the node and ensure that the node and file can be accessed by
1672
    // everyone.
1673
    $node->status = NODE_PUBLISHED;
1674
    node_save($node);
1675
    $this->drupalLogin($this->admin_user);
1676
    $this->drupalGet("node/$nid");
1677
    $this->assertResponse(200, 'Administrator can access the published node.');
1678
    $this->drupalGet($file_url);
1679
    $this->assertResponse(200, 'Administrator can download the file attached to the published node.');
1680
    $this->drupalLogOut();
1681
    $this->drupalGet("node/$nid");
1682
    $this->assertResponse(200, 'Anonymous user can access the published node.');
1683
    $this->drupalGet($file_url);
1684
    $this->assertResponse(200, 'Anonymous user can download the file attached to the published node.');
1685

  
1686
    // Make the node private via the node access system and test that only
1687
    // administrators (not anonymous users) can access the node and download
1688
    // the file.
1689
    $node->private = TRUE;
1690
    node_save($node);
1691
    $this->drupalLogin($this->admin_user);
1692
    $this->drupalGet("node/$nid");
1693
    $this->assertResponse(200, 'Administrator can access the private node.');
1694
    $this->drupalGet($file_url);
1695
    $this->assertResponse(200, 'Administrator can download the file attached to the private node.');
1696
    $this->drupalLogOut();
1697
    $this->drupalGet("node/$nid");
1698
    $this->assertResponse(403, 'Anonymous user cannot access the private node.');
1699
    $this->drupalGet($file_url);
1700
    $this->assertResponse(403, 'Anonymous user cannot download the file attached to the private node.');
1701
  }
1629 1702
}
1630 1703

  
1631 1704
/**
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
drupal7/modules/file/tests/file_module_test.module
67 67
  }
68 68
  drupal_set_message(t('The file id is %fid.', array('%fid' => $fid)));
69 69
}
70

  
71
/**
72
 * Implements hook_file_download().
73
 */
74
function file_module_test_file_download($uri) {
75
  if (variable_get('file_module_test_grant_download_access')) {
76
    // Mimic what file_get_content_headers() would do if we had a full $file
77
    // object to pass to it.
78
    return array(
79
      'Content-Type' => mime_header_encode(file_get_mimetype($uri)),
80
      'Content-Length' => filesize($uri),
81
      'Cache-Control' => 'private',
82
    );
83
  }
84
}
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
13
version = "7.56"
12
; Information added by Drupal.org packaging script on 2018-02-21
13
version = "7.57"
14 14
project = "drupal"
15
datestamp = "1498069849"
15
datestamp = "1519235152"
16 16

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
13
version = "7.56"
12
; Information added by Drupal.org packaging script on 2018-02-21
13
version = "7.57"
14 14
project = "drupal"
15
datestamp = "1498069849"
15
datestamp = "1519235152"
16 16

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
8
version = "7.56"
7
; Information added by Drupal.org packaging script on 2018-02-21
8
version = "7.57"
9 9
project = "drupal"
10
datestamp = "1498069849"
10
datestamp = "1519235152"
11 11

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
15
version = "7.56"
14
; Information added by Drupal.org packaging script on 2018-02-21
15
version = "7.57"
16 16
project = "drupal"
17
datestamp = "1498069849"
17
datestamp = "1519235152"
18 18

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
12
version = "7.56"
11
; Information added by Drupal.org packaging script on 2018-02-21
12
version = "7.57"
13 13
project = "drupal"
14
datestamp = "1498069849"
14
datestamp = "1519235152"
15 15

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
61
version = "7.56"
60
; Information added by Drupal.org packaging script on 2018-02-21
61
version = "7.57"
62 62
project = "drupal"
63
datestamp = "1498069849"
63
datestamp = "1519235152"
64 64

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
drupal7/modules/simpletest/tests/common.test
76 76
class CommonURLUnitTest extends DrupalWebTestCase {
77 77
  public static function getInfo() {
78 78
    return array(
79
      'name' => 'URL generation tests',
79
      'name' => 'URL generation unit tests',
80 80
      'description' => 'Confirm that url(), drupal_get_query_parameters(), drupal_http_build_query(), and l() work correctly with various input.',
81 81
      'group' => 'System',
82 82
    );
......
372 372
  }
373 373
}
374 374

  
375
/**
376
 * Web tests for URL generation functions.
377
 */
378
class CommonURLWebTest extends DrupalWebTestCase {
379
  public static function getInfo() {
380
    return array(
381
      'name' => 'URL generation web tests',
382
      'description' => 'Confirm that URL-generating functions work correctly on specific site paths.',
383
      'group' => 'System',
384
    );
385
  }
386

  
387
  function setUp() {
388
    parent::setUp('common_test');
389
  }
390

  
391
  /**
392
   * Tests the url() function on internal paths which mimic external URLs.
393
   */
394
  function testInternalPathMimicsExternal() {
395
    // Ensure that calling url(current_path()) on "/http://example.com" (an
396
    // internal path which mimics an external URL) always links to the internal
397
    // path, not the external URL. This helps protect against external URL link
398
    // injection vulnerabilities.
399
    variable_set('common_test_link_to_current_path', TRUE);
400
    $this->drupalGet('/http://example.com');
401
    $this->clickLink('link which should point to the current path');
402
    $this->assertUrl('/http://example.com');
403
    $this->assertText('link which should point to the current path');
404
  }
405
}
406

  
375 407
/**
376 408
 * Tests url_is_external().
377 409
 */
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
drupal7/modules/simpletest/tests/common_test.module
99 99
  if (variable_get('common_test_redirect_current_path', FALSE)) {
100 100
    drupal_goto(current_path());
101 101
  }
102
  if (variable_get('common_test_link_to_current_path', FALSE)) {
103
    drupal_set_message(l('link which should point to the current path', current_path()));
104
  }
102 105
}
103 106

  
104 107
/**
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
11
version = "7.56"
10
; Information added by Drupal.org packaging script on 2018-02-21
11
version = "7.57"
12 12
project = "drupal"
13
datestamp = "1498069849"
13
datestamp = "1519235152"
14 14

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
10
version = "7.56"
9
; Information added by Drupal.org packaging script on 2018-02-21
10
version = "7.57"
11 11
project = "drupal"
12
datestamp = "1498069849"
12
datestamp = "1519235152"
13 13

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
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 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
drupal7/modules/simpletest/tests/image_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
drupal7/modules/simpletest/tests/menu_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2017-06-21
9
version = "7.56"
8
; Information added by Drupal.org packaging script on 2018-02-21
9
version = "7.57"
10 10
project = "drupal"
11
datestamp = "1498069849"
11
datestamp = "1519235152"
12 12

  
drupal7/modules/simpletest/tests/module_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2017-06-21
9
version = "7.56"
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff