Skip to content

Commit

Permalink
Update to Drupal 7.97. For more information, see https://www.drupal.o…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantheon Automation authored and John Spellman committed Apr 25, 2023
1 parent 5521488 commit a5f941d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Drupal 7.97, 2023-04-21
-----------------------
- Fix PHP 5.x regression caused by SA-CORE-2023-005

Drupal 7.96, 2023-04-19
-----------------------
- Fixed security issues:
Expand Down
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.96');
define('VERSION', '7.97');

/**
* Core API compatibility.
Expand Down
2 changes: 1 addition & 1 deletion includes/file.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,7 @@ function file_uri_normalize_dot_segments($uri) {
if ($target !== FALSE) {
if (!in_array($scheme, variable_get('file_sa_core_2023_005_schemes', array()))) {
$class = file_stream_wrapper_get_class($scheme);
$is_local = is_subclass_of($class, DrupalLocalStreamWrapper::class);
$is_local = is_subclass_of($class, 'DrupalLocalStreamWrapper');
if ($is_local) {
$target = str_replace(DIRECTORY_SEPARATOR, '/', $target);
}
Expand Down
2 changes: 1 addition & 1 deletion modules/system/system.module
Original file line number Diff line number Diff line change
Expand Up @@ -4100,7 +4100,7 @@ function system_file_download($uri) {
if (!in_array($scheme, variable_get('file_sa_core_2023_005_schemes', array()))) {
if (DIRECTORY_SEPARATOR !== '/') {
$class = file_stream_wrapper_get_class($scheme);
if (is_subclass_of($class, DrupalLocalStreamWrapper::class)) {
if (is_subclass_of($class, 'DrupalLocalStreamWrapper')) {
$target = str_replace(DIRECTORY_SEPARATOR, '/', $target);
}
}
Expand Down

0 comments on commit a5f941d

Please sign in to comment.