mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Update examples
This commit is contained in:
@@ -9,6 +9,7 @@ class BadERBController < ActionController::Base
|
||||
<h2>Hello %s </h2></body></html>
|
||||
" % name
|
||||
template = ERB.new(html_text).result(binding)
|
||||
render inline: html_text
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ class GoodController < ActionController::Base
|
||||
<h2>Hello <%= name %> </h2></body></html>
|
||||
"
|
||||
template = ERB.new(html_text).result(binding)
|
||||
render inline: html_text
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user