Fix potential bug in YAML rendering: convert object to string before escaping

This commit is contained in:
Dawa Ometto
2017-05-31 17:18:45 +02:00
parent 935a080152
commit 37c1183515
+1 -1
View File
@@ -201,7 +201,7 @@ module Precious
data = data.values
result << "<tr>\n"
keys.each do |heading|
result << "<th>#{CGI.escapeHTML(heading)}</th>\n"
result << "<th>#{CGI.escapeHTML(heading.to_s)}</th>\n"
end
result << "</tr>\n"
end