apply suggestions from doc review

Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
This commit is contained in:
Erik Krogh Kristensen 2023-01-10 12:56:22 +01:00 коммит произвёл GitHub
Родитель f98ff65b11
Коммит f2658a0936
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -5,7 +5,7 @@
<overview>
<p>
When a library function dynamically constructs code in a potentially unsafe way, then
When a library function dynamically constructs code in a potentially unsafe way,
it's important to document to clients of the library that the function should only be
used with trusted inputs.
@ -35,7 +35,7 @@ then an attacker might be able to execute arbitrary code on the system.
<p>
To avoid this problem, either properly document that the function is potentially
unsafe, or use an alternative solution such as <code>JSON.parse</code> or another library, like in the examples below,
unsafe, or use an alternative solution such as <code>JSON.parse</code> or another library
that does not allow arbitrary code to be executed.
</p>