Skip to content

Commit 83bf612

Browse files
authored
Merge pull request #69 from ddelangle/master
FIX : escaping ';'
2 parents dfe593a + b328209 commit 83bf612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ FTP.prototype.escapeshell = function (cmd) {
7878
if (typeof cmd !== 'string') {
7979
return ''
8080
}
81-
return cmd.replace(/([&"\s'$`\\])/g, '\\$1')
81+
return cmd.replace(/([&"\s'$`\\;])/g, '\\$1')
8282
}
8383

8484
FTP.prototype._escapeshell = function (cmd) {

0 commit comments

Comments
 (0)