Skip to content

Commit ff4b97b

Browse files
authored
Reword
1 parent f123935 commit ff4b97b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ruby/ql/src/queries/security/cwe-352/CSRFProtectionDisabled.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
Note this remains true even in Rails version 5 and later: these versions
6262
automatically run <code>protect_from_forgery with: :exception</code>
6363
by default, but manually calling <code>protect_from_forgery</code> with
64-
no <code>with</code> argument will still downgrade protection to null the
65-
session rather than raise an exception.
64+
no <code>with</code> argument will still downgrade protection to provide an
65+
empty session rather than raise an exception.
6666
</p>
6767

6868
</example>

ruby/ql/src/queries/security/cwe-352/CSRFProtectionNotEnabled.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
<code>protect_from_forgery with: :exception</code> can help to avoid this
4444
by raising an exception on an invalid CSRF token instead.
4545

46-
Note that Rails version 5 and later
46+
Note that Rails versions 5 and later
4747
automatically run <code>protect_from_forgery with: :exception</code>
4848
by default, but manually calling <code>protect_from_forgery</code> with
49-
no <code>with</code> argument will downgrade protection to null the
49+
no <code>with</code> argument will downgrade protection to provide an empty
5050
session rather than raise an exception.
5151
</p>
5252
</recommendation>

0 commit comments

Comments
 (0)