Skip to content

Commit

Permalink
Merge pull request #42 from jonasschmidt95/main
Browse files Browse the repository at this point in the history
Allow files with space in filename
  • Loading branch information
Pierstoval authored Dec 9, 2024
2 parents 53db71e + 88bdcc1 commit bf7e04e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ phpunit.xml
.phpunit.cache

ImageMagick*.tar.gz
/ImageMagick-*/
/ImageMagick-*/
2 changes: 2 additions & 0 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ private static function cleanPath(string $path, bool $rtrim = false): string
$path = \rtrim($path, '/');
}

$path = \escapeshellarg($path);

return $path;
}

Expand Down

0 comments on commit bf7e04e

Please sign in to comment.