mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix constant value extraction. Escape HTML in constant values
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d0e62faf1
commit
74d704c263
3 changed files with 21 additions and 3 deletions
|
@ -348,7 +348,7 @@ module Generators
|
|||
@context.constants.map do |co|
|
||||
res = {
|
||||
'name' => co.name,
|
||||
'value' => co.value
|
||||
'value' => CGI.escapeHTML(co.value)
|
||||
}
|
||||
res['desc'] = markup(co.comment, true) if co.comment && !co.comment.empty?
|
||||
res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue