Skip to content
Permalink
Browse files Browse the repository at this point in the history
improved shell sanitation
  • Loading branch information
sebhildebrandt committed May 19, 2020
1 parent 1475505 commit bad372e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util.js
Expand Up @@ -503,6 +503,9 @@ function sanitizeShellString(str) {
result = result.replace(/\$/g, "");
result = result.replace(/#/g, "");
result = result.replace(/\\/g, "");
result = result.replace(/\t/g, "");
result = result.replace(/\n/g, "");
result = result.replace(/\"/g, "");
return result
}

Expand Down

0 comments on commit bad372e

Please sign in to comment.