Skip to content

Commit

Permalink
(CAT-1852) Add html escapes to class.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Jun 18, 2024
1 parent b3affd4 commit 2c46fc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions object_templates/class.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<%- if params -%>
#
<%- params.each do |param| -%>
# @param <%= param[:name] %> A description of this parameter.
# @param <%= h(param[:name]) %> A description of this parameter.
<%- end -%>
class <%= name %> (
class <%= h(name) %> (
<%- params.each do |param| -%>
<%= param[:type].ljust(max_type_length) %> $<%= param[:name] %>,
<%= h(param[:type]).ljust(max_type_length) %> $<%= h(param[:name]) %>,
<%- end -%>
) {
<%- else -%>
class <%= name %> {
class <%= h(name) %> {
<%- end -%>
}

0 comments on commit 2c46fc9

Please sign in to comment.