Skip to content

Commit 64cf3ad

Browse files
committed
Update examples
1 parent 820db43 commit 64cf3ad

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ruby/ql/src/experimental/template-injection/examples/SSTIBad.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def some_request_handler
99
<h2>Hello %s </h2></body></html>
1010
" % name
1111
template = ERB.new(html_text).result(binding)
12+
render inline: html_text
1213
end
1314
end
1415

ruby/ql/src/experimental/template-injection/examples/SSTIGood.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def some_request_handler
99
<h2>Hello <%= name %> </h2></body></html>
1010
"
1111
template = ERB.new(html_text).result(binding)
12+
render inline: html_text
1213
end
1314
end
1415

0 commit comments

Comments
 (0)