FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: clarify that any truthy value of `shell` is part of DEP0190 · nodejs/node@e5800cc · GitHub

/ node Public

Commit e5800cc

Browse files
authored andcommitted
doc: clarify that any truthy value of shell is part of DEP0190
PR-URL: #62249 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent eb776a3 commit e5800cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎doc/api/deprecations.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3803,7 +3803,7 @@ Type: Documentation-only
38033803
`process.features.tls_alpn`, `process.features.tls_ocsp`, and `process.features.tls_sni` are
38043804
deprecated, as their values are guaranteed to be identical to that of `process.features.tls`.
38053805

3806-
### DEP0190: Passing `args` to `node:child_process` `execFile`/`spawn` with `shell` option `true`
3806+
### DEP0190: Passing `args` to `node:child_process` `execFile`/`spawn` with `shell` option
38073807

38083808
<!-- YAML
38093809
changes:
@@ -3816,7 +3816,8 @@ changes:
38163816
Type: Documentation-only
38173817

38183818
When an `args` array is passed to [`child_process.execFile`][] or [`child_process.spawn`][] with the option
3819-
`{ shell: true }`, the values are not escaped, only space-separated, which can lead to shell injection.
3819+
`{ shell: true }` or `{ shell: '/path/to/shell' }`, the values are not escaped, only space-separated,
3820+
which can lead to shell injection.
38203821

38213822
### DEP0191: `repl.builtinModules`
38223823

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL