Merge pull request #1248 from repotag/fix_yaml

Fix potential bug in YAML rendering: convert object to string before escaping
This commit is contained in:
Dawa Ometto
2017-07-31 18:35:00 +02:00
committed by GitHub
+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