Skip to content

Commit

Permalink
Merge pull request #34 from marcoris/maestro
Browse files Browse the repository at this point in the history
Sanitize the source string
  • Loading branch information
MaestroError authored Feb 9, 2024
2 parents 5cfd764 + 852bc21 commit 1d307ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HeicToJpg.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public static function convert(string $source, string $converterPath = "", $forc
return (new self)
->checkOS($forceArm)
->setConverterLocation($converterPath)
->convertImage($source);
->convertImage(htmlspecialchars($source));
}

public static function convertOnMac(string $source, string $arch = "amd64", string $converterPath = "")
Expand Down

0 comments on commit 1d307ee

Please sign in to comment.