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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user