Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge changes from D6LTS Pressflow fork #131

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 43 additions & 17 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,61 @@
Drupal 6.47 LTS, 2019-01-02
Drupal 6.52, 2019-05-08 - Long term support
---------------------------------------
- Fixed security issues (cross site scripting), backport. See SA-CORE-2019-007.
- Fixed db_version_compare() does not handle if $db_url is an array

Drupal 6.51, 2019-04-29 - Long term support
---------------------------------------
- Add support for MySQL 8

Drupal 6.50, 2019-04-17 - Long term support
---------------------------------------
- Fixed security issues (cross site scripting), backport. See SA-CORE-2019-006.

Drupal 6.49, 2019-01-16 - Long term support
---------------------------------------
- Fixes issues with some Drush commands when using the PHAR file. See
https://www.drupal.org/project/drupal/issues/3026386

Drupal 6.48, 2019-01-16 - Long term support
---------------------------------------
- Fixed security issues (arbitrary PHP code execution), backport. See
SA-CORE-2019-002.

Drupal 6.47, 2019-01-02 - Long term support
---------------------------------------
- Improved support for PHP 7.2.

Drupal 6.46 LTS, 2018-10-17
Drupal 6.46, 2018-10-17 - Long term support
---------------------------------------
- Fixed security issues (open redirect), backport. See SA-CORE-2018-006.

Drupal 6.45 LTS, 2018-10-04
Drupal 6.45, 2018-10-04 - Long term support
---------------------------------------
- Initial support for PHP 7.2.

Drupal 6.44 LTS, 2018-04-25
Drupal 6.44, 2018-04-25 - Long term support
---------------------------------------
- Fixed security issues (remote code execution), backport. See SA-CORE-2018-004.

Drupal 6.43 LTS, 2018-03-29
-----------------------
- Fixes bug from SA-CORE-2018-002 changes, update version.
Drupal 6.43, 2018-03-28 - Long term support
---------------------------------------
- Bug fixes to changes in 6.42 that affects the OG module.

Drupal 6.41, Drupal 6.42
-----------------------
Skipped to bring version number in line with
https://github.com/d6lts/drupal
Drupal 6.42, 2018-03-28 - Long term support
---------------------------------------
- Fixed security issues (remote code execution), backport. See SA-CORE-2018-002.

Drupal 6.40 Pressflow, 2018-03-28
-----------------------
- Fixed security issues (multiple vulnerabilities). See SA-CORE-2018-002.
Drupal 6.40, 2018-02-22 - Long term support
---------------------------------------
- Bug fixes to changes in 6.39

Drupal 6.39 Pressflow, 2018-02-21
-----------------------
- Fixed security issues (multiple vulnerabilities). See SA-CORE-2018-001.
Drupal 6.40, 2018-02-22 - Long term support
---------------------------------------
- Bug fixes to changes in 6.39

Drupal 6.39, 2018-02-21 - Long term support
---------------------------------------
- Fixed security issues (multiple vulnerabilities), backport. See SA-CORE-2018-001.

Drupal 6.38, 2016-02-24 - Final release
---------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions includes/bootstrap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,18 @@ function _drupal_bootstrap($phase) {

case DRUPAL_BOOTSTRAP_CONFIGURATION:
drupal_unset_globals();
// PHP's built-in phar:// stream wrapper is not sufficiently secure. Override
// it with a more secure one, which requires PHP 5.3.3. For lower versions,
// unregister the built-in one without replacing it. Sites needing phar
// support for lower PHP versions must implement hook_stream_wrappers() to
// register their desired implementation.
if (in_array('phar', stream_get_wrappers(), TRUE)) {
stream_wrapper_unregister('phar');
if (version_compare(PHP_VERSION, '5.3.3', '>=')) {
include_once './includes/file.phar.inc';
file_register_phar_wrapper();
}
}
// Start a page timer:
timer_start('page');
// Initialize the configuration
Expand Down
12 changes: 12 additions & 0 deletions includes/common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2243,6 +2243,7 @@ function drupal_add_js($data = NULL, $type = 'module', $scope = 'header', $defer
$javascript['header'] = array(
'core' => array(
'misc/jquery.js' => array('cache' => TRUE, 'defer' => FALSE, 'preprocess' => TRUE),
'misc/jquery-extend-3.4.0.js' => array('cache' => TRUE, 'defer' => FALSE, 'preprocess' => TRUE),
'misc/drupal.js' => array('cache' => TRUE, 'defer' => FALSE, 'preprocess' => TRUE),
),
'module' => array(),
Expand Down Expand Up @@ -3583,6 +3584,17 @@ function drupal_write_record($table, &$object, $update = array()) {
}
}

// Need to escape reserved keywords for MySQL 8.
if (db_version_compare('mysql', '8.0.0')) {
global $db_mysql8_reserved_keywords;

foreach ($fields as $key => $field) {
if (in_array($field, $db_mysql8_reserved_keywords)) {
$fields[$key] = '`' . $field . '`';
}
}
}

// Build the SQL.
$query = '';
if (!count($update)) {
Expand Down
Loading