Skip to content

Commit ab0da30

Browse files
committed
fix: added escape shell arg in the source path of progressive jpeg class.
1 parent 68dbb35 commit ab0da30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/ProgressiveJPEG.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ProgressiveJPEG extends ImageSqueezerCommon_1.ImageSqueezerCommon {
2222
}
2323
command() {
2424
return this.bin + ' ' +
25-
this.sourceFilePath + ' -interlace plane ' +
25+
this.escapeShellArg(this.sourceFilePath) + ' -interlace plane ' +
2626
this.handleOutputFilePath();
2727
}
2828
}

src/ProgressiveJPEG.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ProgressiveJPEG extends ImageSqueezerCommon {
2626
protected command(): string {
2727

2828
return this.bin + ' ' +
29-
this.sourceFilePath + ' -interlace plane ' +
29+
this.escapeShellArg(this.sourceFilePath) + ' -interlace plane ' +
3030
this.handleOutputFilePath();
3131
}
3232
}

0 commit comments

Comments
 (0)