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
|
data = data.values
|
||||||
result << "<tr>\n"
|
result << "<tr>\n"
|
||||||
keys.each do |heading|
|
keys.each do |heading|
|
||||||
result << "<th>#{CGI.escapeHTML(heading)}</th>\n"
|
result << "<th>#{CGI.escapeHTML(heading.to_s)}</th>\n"
|
||||||
end
|
end
|
||||||
result << "</tr>\n"
|
result << "</tr>\n"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user