Skip to content

Commit ab01dda

Browse files
committed
JS: another qhelp fixup
1 parent c9f60d4 commit ab01dda

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

javascript/ql/src/Security/CWE-770/ResourceExhaustion.qhelp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@
8686
Finally, the following example lets a user choose delay after
8787
which a function is executed:
8888

89-
<sample src="examples/ResourceExhaustion_timeout.js" />
89+
</p>
90+
91+
<sample src="examples/ResourceExhaustion_timeout.js" />
92+
93+
<p>
9094

9195
This is problematic because a large delay essentially makes the
9296
application wait indefinitely before executing the function. Repeated
@@ -95,10 +99,11 @@
9599

96100
Again, a limit on the delay will prevent the attack:
97101

98-
<sample src="examples/ResourceExhaustion_timeout_fixed.js" />
99-
100102
</p>
101103

104+
<sample src="examples/ResourceExhaustion_timeout_fixed.js" />
105+
106+
102107
</example>
103108

104109
<references>

0 commit comments

Comments
 (0)