Skip to content

Commit

Permalink
Update to Drupal 7.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolò Caruso committed Jan 28, 2013
1 parent caada7d commit 25d7fd7
Show file tree
Hide file tree
Showing 134 changed files with 476 additions and 368 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
@@ -1,3 +1,7 @@
Drupal 7.19, 2013-01-16
-----------------------
- Fixed security issues (multiple vulnerabilities). See SA-CORE-2013-001.

Drupal 7.18, 2012-12-19
-----------------------
- Fixed security issues (multiple vulnerabilities). See SA-CORE-2012-004.
Expand Down
2 changes: 1 addition & 1 deletion includes/bootstrap.inc
Expand Up @@ -8,7 +8,7 @@
/**
* The current system version.
*/
define('VERSION', '7.18');
define('VERSION', '7.19');

/**
* Core API compatibility.
Expand Down
4 changes: 2 additions & 2 deletions misc/collapse.js
Expand Up @@ -58,9 +58,9 @@ Drupal.behaviors.collapse = {
$('fieldset.collapsible', context).once('collapse', function () {
var $fieldset = $(this);
// Expand fieldset if there are errors inside, or if it contains an
// element that is targeted by the URI fragment identifier.
// element that is targeted by the URI fragment identifier.
var anchor = location.hash && location.hash != '#' ? ', ' + location.hash : '';
if ($('.error' + anchor, $fieldset).length) {
if ($fieldset.find('.error' + anchor).length) {
$fieldset.removeClass('collapsed');
}

Expand Down
21 changes: 21 additions & 0 deletions misc/drupal.js
Expand Up @@ -6,6 +6,27 @@ jQuery.noConflict();

(function ($) {

/**
* Override jQuery.fn.init to guard against XSS attacks.
*
* See http://bugs.jquery.com/ticket/9521
*/
var jquery_init = $.fn.init;
$.fn.init = function (selector, context, rootjQuery) {
// If the string contains a "#" before a "<", treat it as invalid HTML.
if (selector && typeof selector === 'string') {
var hash_position = selector.indexOf('#');
if (hash_position >= 0) {
var bracket_position = selector.indexOf('<');
if (bracket_position > hash_position) {
throw 'Syntax error, unrecognized expression: ' + selector;
}
}
}
return jquery_init.call(this, selector, context, rootjQuery);
};
$.fn.init.prototype = jquery_init.prototype;

/**
* Attach all registered behaviors to a page element.
*
Expand Down
4 changes: 2 additions & 2 deletions misc/vertical-tabs.js
Expand Up @@ -50,8 +50,8 @@ Drupal.behaviors.verticalTabs = {
if (!tab_focus) {
// If the current URL has a fragment and one of the tabs contains an
// element that matches the URL fragment, activate that tab.
if (window.location.hash && $(window.location.hash, this).length) {
tab_focus = $(window.location.hash, this).closest('.vertical-tabs-pane');
if (window.location.hash && $(this).find(window.location.hash).length) {
tab_focus = $(this).find(window.location.hash).closest('.vertical-tabs-pane');
}
else {
tab_focus = $('> .vertical-tabs-pane:first', this);
Expand Down
6 changes: 3 additions & 3 deletions modules/aggregator/aggregator.info
Expand Up @@ -7,8 +7,8 @@ files[] = aggregator.test
configure = admin/config/services/aggregator/settings
stylesheets[all][] = aggregator.css

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/aggregator/tests/aggregator_test.info
Expand Up @@ -5,8 +5,8 @@ version = VERSION
core = 7.x
hidden = TRUE

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/block/block.info
Expand Up @@ -6,8 +6,8 @@ core = 7.x
files[] = block.test
configure = admin/structure/block

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/block/tests/block_test.info
Expand Up @@ -5,8 +5,8 @@ version = VERSION
core = 7.x
hidden = TRUE

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

Expand Up @@ -13,8 +13,8 @@ regions[footer] = Footer
regions[highlighted] = Highlighted
regions[help] = Help

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/blog/blog.info
Expand Up @@ -5,8 +5,8 @@ version = VERSION
core = 7.x
files[] = blog.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/book/book.info
Expand Up @@ -7,8 +7,8 @@ files[] = book.test
configure = admin/content/book/settings
stylesheets[all][] = book.css

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

9 changes: 9 additions & 0 deletions modules/book/book.pages.inc
Expand Up @@ -38,6 +38,15 @@ function book_render() {
* format determined by the $type parameter.
*/
function book_export($type, $nid) {
// Check that the node exists and that the current user has access to it.
$node = node_load($nid);
if (!$node) {
return MENU_NOT_FOUND;
}
if (!node_access('view', $node)) {
return MENU_ACCESS_DENIED;
}

$type = drupal_strtolower($type);

$export_function = 'book_export_' . $type;
Expand Down
7 changes: 7 additions & 0 deletions modules/book/book.test
Expand Up @@ -258,6 +258,13 @@ class BookTestCase extends DrupalWebTestCase {
// Try getting the URL directly, and verify it fails.
$this->drupalGet('book/export/html/' . $this->book->nid);
$this->assertResponse('403', t('Anonymous user properly forbidden.'));

// Now grant anonymous users permission to view the printer-friendly
// version and verify that node access restrictions still prevent them from
// seeing it.
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access printer-friendly version'));
$this->drupalGet('book/export/html/' . $this->book->nid);
$this->assertResponse('403', 'Anonymous user properly forbidden from seeing the printer-friendly version when denied by node access.');
}

/**
Expand Down
6 changes: 3 additions & 3 deletions modules/color/color.info
Expand Up @@ -5,8 +5,8 @@ version = VERSION
core = 7.x
files[] = color.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/comment/comment.info
Expand Up @@ -9,8 +9,8 @@ files[] = comment.test
configure = admin/content/comment
stylesheets[all][] = comment.css

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/contact/contact.info
Expand Up @@ -6,8 +6,8 @@ core = 7.x
files[] = contact.test
configure = admin/structure/contact

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/contextual/contextual.info
Expand Up @@ -5,8 +5,8 @@ version = VERSION
core = 7.x
files[] = contextual.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/dashboard/dashboard.info
Expand Up @@ -7,8 +7,8 @@ files[] = dashboard.test
dependencies[] = block
configure = admin/dashboard/customize

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/dblog/dblog.info
Expand Up @@ -5,8 +5,8 @@ version = VERSION
core = 7.x
files[] = dblog.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/field/field.info
Expand Up @@ -10,8 +10,8 @@ dependencies[] = field_sql_storage
required = TRUE
stylesheets[all][] = theme/field.css

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

Expand Up @@ -7,8 +7,8 @@ dependencies[] = field
files[] = field_sql_storage.test
required = TRUE

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/field/modules/list/list.info
Expand Up @@ -7,8 +7,8 @@ dependencies[] = field
dependencies[] = options
files[] = tests/list.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/field/modules/list/tests/list_test.info
Expand Up @@ -5,8 +5,8 @@ package = Testing
version = VERSION
hidden = TRUE

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/field/modules/number/number.info
Expand Up @@ -6,8 +6,8 @@ core = 7.x
dependencies[] = field
files[] = number.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/field/modules/options/options.info
Expand Up @@ -6,8 +6,8 @@ core = 7.x
dependencies[] = field
files[] = options.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/field/modules/text/text.info
Expand Up @@ -7,8 +7,8 @@ dependencies[] = field
files[] = text.test
required = TRUE

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/field/tests/field_test.info
Expand Up @@ -6,8 +6,8 @@ files[] = field_test.entity.inc
version = VERSION
hidden = TRUE

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/field_ui/field_ui.info
Expand Up @@ -6,8 +6,8 @@ core = 7.x
dependencies[] = field
files[] = field_ui.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/file/file.info
Expand Up @@ -6,8 +6,8 @@ core = 7.x
dependencies[] = field
files[] = tests/file.test

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/file/tests/file_module_test.info
Expand Up @@ -5,8 +5,8 @@ version = VERSION
core = 7.x
hidden = TRUE

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

6 changes: 3 additions & 3 deletions modules/filter/filter.info
Expand Up @@ -7,8 +7,8 @@ files[] = filter.test
required = TRUE
configure = admin/config/content/formats

; Information added by drupal.org packaging script on 2012-12-19
version = "7.18"
; Information added by drupal.org packaging script on 2013-01-16
version = "7.19"
project = "drupal"
datestamp = "1355944003"
datestamp = "1358374870"

0 comments on commit 25d7fd7

Please sign in to comment.