Kernel#system -> Kernel.system

This commit is contained in:
Harry Maclean
2021-09-03 11:36:41 +01:00
parent 8f65d78cb5
commit 4ecc78effc

View File

@@ -4,7 +4,7 @@
<qhelp>
<overview>
<p>Code that passes user input directly to
<code>Kernel#system</code>, <code>Kernel#exec</code>, or some other library
<code>Kernel.system</code>, <code>Kernel.exec</code>, or some other library
routine that executes a command, allows the user to execute malicious
code.</p>
@@ -24,7 +24,7 @@ safe before using it.</p>
<example>
<p>The following example shows code that takes a shell script that can be changed
maliciously by a user, and passes it straight to <code>Kernel#system</code>
maliciously by a user, and passes it straight to <code>Kernel.system</code>
without examining it first.</p>
<sample src="examples/command_injection.rb" />