Apply suggestions from code review

Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Erik Krogh Kristensen
2021-03-15 12:39:56 +01:00
committed by GitHub
parent c95a8e6776
commit b039267b76
2 changed files with 4 additions and 4 deletions

View File

@@ -11,14 +11,14 @@ local file reads or even remote code execution.
<recommendation>
<p>
Avoid using user-controlled objects as arguments to template engine, instead construct the object explicitly with
Avoid using user-controlled objects as arguments to a template engine. Instead, construct the object explicitly with
the specific properties needed by the template.
</p>
</recommendation>
<example>
<p>
In the below example a server uses the user-controlled <code>profile</code> object to
In the example below a server uses the user-controlled <code>profile</code> object to
render the <code>index</code> template.
</p>
<sample src="examples/TemplateObjectInjection.js" />
@@ -42,4 +42,4 @@ cwe.mitre.org: <a href="https://cwe.mitre.org/data/definitions/73.html">CWE-73:
</li>
</references>
</qhelp>
</qhelp>