Skip to content

Commit

Permalink
LUGG-1215 Merge branch 'development' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
jrearick committed Sep 16, 2020
2 parents 15eb30f + c16c15a commit 03fcbef
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Drupal 7.73, 2020-09-16
-----------------------
- Fixed security issues:
- SA-CORE-2020-007

Drupal 7.72, 2020-06-17
-----------------------
- Fixed security issues:
Expand Down
5 changes: 5 additions & 0 deletions LUGGAGE_CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ How to read this changelog:

The LUGG- prefix refers to JIRA issue numbers; the # prefix refers to GitHub issue numbers.

Luggage 3.6.14, 2020-09-16
Drupal 7.73, 2020-09-16
-------------------------
- LUGG-1215 - Drupal 7.73 SA-CORE-2020-007

Luggage 3.6.13, 2020-06-17
Drupal 7.72, 2020-06-17
-------------------------
Expand Down
6 changes: 6 additions & 0 deletions LUGGAGE_ISU_CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The Luggage_ISU version number shows the upstream Luggage version it is based on
as well as the Luggage_ISU version. For example, Luggage_ISU 3.5.0-5.0 is based
on the upstream Luggage release 3.5.0.

Luggage_ISU 3.6.14-6.14, 2020-09-16
Drupal 7.73, 2020-09-16
-------------------------
Merged with upstream Luggage 3.6.14
- LUGG-1215 - Drupal 7.73 SA-CORE-2020-007

Luggage_ISU 3.6.13-6.13, 2020-06-17
Drupal 7.72, 2020-06-17
-------------------------
Expand Down
2 changes: 1 addition & 1 deletion LUGGAGE_ISU_VERSION.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

$version = "6.13";
$version = "6.14";
2 changes: 1 addition & 1 deletion LUGGAGE_VERSION.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

$version = "3.6.13";
$version = "3.6.14";
2 changes: 1 addition & 1 deletion includes/bootstrap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* The current system version.
*/
define('VERSION', '7.72');
define('VERSION', '7.73');

/**
* Core API compatibility.
Expand Down
3 changes: 2 additions & 1 deletion misc/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Drupal.ajax = function (base, element, element_settings) {
// The 'this' variable will not persist inside of the options object.
var ajax = this;
ajax.options = {
url: ajax.url,
url: Drupal.sanitizeAjaxUrl(ajax.url),
data: ajax.submit,
beforeSerialize: function (element_settings, options) {
return ajax.beforeSerialize(element_settings, options);
Expand Down Expand Up @@ -195,6 +195,7 @@ Drupal.ajax = function (base, element, element_settings) {
}
},
dataType: 'json',
jsonp: false,
type: 'POST'
};

Expand Down
3 changes: 2 additions & 1 deletion misc/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ Drupal.ACDB.prototype.search = function (searchString) {
// encodeURIComponent to allow autocomplete search terms to contain slashes.
$.ajax({
type: 'GET',
url: db.uri + '/' + Drupal.encodePath(searchString),
url: Drupal.sanitizeAjaxUrl(db.uri + '/' + Drupal.encodePath(searchString)),
dataType: 'json',
jsonp: false,
success: function (matches) {
if (typeof matches.status == 'undefined' || matches.status != 0) {
db.cache[searchString] = matches;
Expand Down
17 changes: 17 additions & 0 deletions misc/drupal.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,23 @@ Drupal.urlIsLocal = function (url) {
return absoluteUrl === baseUrl || absoluteUrl.indexOf(baseUrl + '/') === 0;
};

/**
* Sanitizes a URL for use with jQuery.ajax().
*
* @param url
* The URL string to be sanitized.
*
* @return
* The sanitized URL.
*/
Drupal.sanitizeAjaxUrl = function (url) {
var regex = /\=\?(&|$)/;
while (url.match(regex)) {
url = url.replace(regex, '');
}
return url;
}

/**
* Generate the themed representation of a Drupal object.
*
Expand Down

0 comments on commit 03fcbef

Please sign in to comment.