Skip to content

Commit

Permalink
Update OptimizerChain.php
Browse files Browse the repository at this point in the history
Update code to fix vulnerability
  • Loading branch information
Sonicrrrr committed Mar 6, 2024
1 parent 769e085 commit 53011ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OptimizerChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function optimize(string $pathToImage, string $pathToOutput = null)
if($check == false){
throw new InvalidArgumentException("Cannot copy file");
}
$pathToImage = $pathToOutput;
}
$image = new Image($pathToImage);
$this->logger->info("Start optimizing {$pathToImage}");
Expand Down

0 comments on commit 53011ba

Please sign in to comment.