Skip to content

Commit

Permalink
Canonicalize relative paths of deferred images
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Nov 25, 2019
1 parent 78a0e4d commit 51aceaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DeferredResizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ private function executeDeferredResize(string $targetPath, array $config, Imagin
$options = new ResizeOptions();
$options->setImagineOptions($config['options']['imagine_options']);

$path = Path::canonicalize($this->cacheDir.'/'.$config['path']);

return parent::executeResize(
new Image($this->cacheDir.'/'.$config['path'], $imagine, $this->filesystem),
new Image($path, $imagine, $this->filesystem),
$coordinates,
$this->cacheDir.'/'.$targetPath,
$options
Expand Down

0 comments on commit 51aceaf

Please sign in to comment.