Apply suggestions from code review

Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Erik Krogh Kristensen
2020-05-19 14:03:03 +02:00
committed by GitHub
parent 0275ea955b
commit b71919299b
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@
<p>
If possible, provide the dynamic arguments to the shell as an array
using e.g. the <code>child_process.execFile</code> API to avoid
using a safe API such as <code>child_process.execFile</code> to avoid
interpretation by the shell.
</p>
@@ -49,7 +49,7 @@
</p>
<p>
Even worse, although less likely, a client might pass in user-controlled
Even worse, a client might pass in user-controlled
data not knowing that the input is interpreted as a shell command.
This could allow a malicious user to provide the input <code>http://example.org; cat /etc/passwd</code>
in order to execute the command <code>cat /etc/passwd</code>.

View File

@@ -1 +1 @@
module.exports = function notExporterAnyWhere() {}
module.exports = function notExportedAnyWhere() {}