Skip to content

Commit fb19288

Browse files
Address review comments - Fix docs typo and add a reference
1 parent 592acb9 commit fb19288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/src/queries/security/cwe-915/MassAssignment.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<overview>
66
<p>
77
Operations that allow for mass assignment (setting multiple attributes of an object using a hash), such as <code>ActiveRecord::Base.new</code>, should take care not to
8-
allow arbitrary parameters to be set by the user. Otherwise, unintended attributes may be set, such as an <code>isAdmin</code> feild for a <code>User</code> object.
8+
allow arbitrary parameters to be set by the user. Otherwise, unintended attributes may be set, such as an <code>is_admin</code> field for a <code>User</code> object.
99
</p>
1010
</overview>
1111
<recommendation>
@@ -29,6 +29,6 @@
2929
</example>
3030

3131
<references>
32-
32+
<li>Rails guides: <a href="https://guides.rubyonrails.org/action_controller_overview.html#strong-parameters">Strong Parameters</a>.</li>
3333
</references>
3434
</qhelp>

0 commit comments

Comments
 (0)