Skip to content
Snippets Groups Projects
Commit c1afae65 authored by Albert Skibinski's avatar Albert Skibinski Committed by Michael Lander
Browse files

Issue #3316283 by askibinski, erikaagp, michaellander: Fix deprecated function call on pathinfo

parent 7a41248c
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,9 @@ class ImageStyleDownloadController extends CoreImageStyleDownloadController { ...@@ -35,6 +35,9 @@ class ImageStyleDownloadController extends CoreImageStyleDownloadController {
*/ */
public function deliver(Request $request, $scheme, ImageStyleInterface $image_style) { public function deliver(Request $request, $scheme, ImageStyleInterface $image_style) {
$target = $request->query->get('file'); $target = $request->query->get('file');
if (!$target) {
throw new NotFoundHttpException();
}
$path_info = pathinfo($target); $path_info = pathinfo($target);
// If .webp file, look for image to derive from. // If .webp file, look for image to derive from.
if ($path_info['extension'] == 'webp') { if ($path_info['extension'] == 'webp') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment