-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #874 from UN-OCHA/develop
v2.15.0
- Loading branch information
Showing
101 changed files
with
1,737 additions
and
1,601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
268 changes: 106 additions & 162 deletions
268
PATCHES/core--drupal--3008292-image-upload-validators.patch
Large diffs are not rendered by default.
Oops, something went wrong.
297 changes: 0 additions & 297 deletions
297
PATCHES/core--drupal--3047110-taxonomy-term-moderation-class.patch
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
PATCHES/imageapi_optimize_webp--3424324-property-check.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/src/Controller/ImageStyleDownloadController.php b/src/Controller/ImageStyleDownloadController.php | ||
--- a/src/Controller/ImageStyleDownloadController.php (revision c1afae65e07b47ff8abb909fdf35303b36493806) | ||
+++ b/src/Controller/ImageStyleDownloadController.php (date 1709116553784) | ||
@@ -40,7 +40,7 @@ | ||
} | ||
$path_info = pathinfo($target); | ||
// If .webp file, look for image to derive from. | ||
- if ($path_info['extension'] == 'webp') { | ||
+ if (isset($path_info['extension']) && $path_info['extension'] === 'webp') { | ||
$image_uri = $scheme . '://' . $target; | ||
// Continue processing if source found, else throw NotFoundHttpException. | ||
if ($source_uri = $this->lookupSourceImage($image_uri)) { |
31 changes: 31 additions & 0 deletions
31
PATCHES/imageapi_optimize_webp--3453941-drupal-10-3-compatibility.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/src/Controller/ImageStyleDownloadController.php b/src/Controller/ImageStyleDownloadController.php | ||
index c8c9d67..9c33d76 100644 | ||
--- a/src/Controller/ImageStyleDownloadController.php | ||
+++ b/src/Controller/ImageStyleDownloadController.php | ||
@@ -33,7 +33,7 @@ class ImageStyleDownloadController extends CoreImageStyleDownloadController { | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
- public function deliver(Request $request, $scheme, ImageStyleInterface $image_style) { | ||
+ public function deliver(Request $request, $scheme, ImageStyleInterface $image_style, string $required_derivative_scheme) { | ||
$target = $request->query->get('file'); | ||
if (!$target) { | ||
throw new NotFoundHttpException(); | ||
@@ -46,7 +46,7 @@ class ImageStyleDownloadController extends CoreImageStyleDownloadController { | ||
if ($source_uri = $this->lookupSourceImage($image_uri)) { | ||
// Replace webp image with source image and call parent:deliver(). | ||
$request->query->set('file', str_replace($scheme . '://', '', $source_uri)); | ||
- $source_response = parent::deliver($request, $scheme, $image_style); | ||
+ $source_response = parent::deliver($request, $scheme, $image_style, $required_derivative_scheme); | ||
$derivative_uri = $image_style->buildUri($image_uri); | ||
// If parent:deliver() returns BinaryFileResponse, we'll replace | ||
// the BinaryFileResponse with one containing the .webp image | ||
@@ -71,7 +71,7 @@ class ImageStyleDownloadController extends CoreImageStyleDownloadController { | ||
throw new NotFoundHttpException(); | ||
} | ||
else { | ||
- return parent::deliver($request, $scheme, $image_style); | ||
+ return parent::deliver($request, $scheme, $image_style, $required_derivative_scheme); | ||
} | ||
} | ||
|
Oops, something went wrong.