Skip to content

Commit bf7e04e

Browse files
authored
Merge pull request #42 from jonasschmidt95/main
Allow files with space in filename
2 parents 53db71e + 88bdcc1 commit bf7e04e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ phpunit.xml
1111
.phpunit.cache
1212

1313
ImageMagick*.tar.gz
14-
/ImageMagick-*/
14+
/ImageMagick-*/

src/Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ private static function cleanPath(string $path, bool $rtrim = false): string
126126
$path = \rtrim($path, '/');
127127
}
128128

129+
$path = \escapeshellarg($path);
130+
129131
return $path;
130132
}
131133

0 commit comments

Comments
 (0)