Skip to content

Commit 60afd68

Browse files
committed
no attack vector found
1 parent b266cb6 commit 60afd68

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/coderay/encoders/html.rb

-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def self.make_html_escape_hash
142142
HTML_ESCAPE = make_html_escape_hash
143143
HTML_ESCAPE_PATTERN = /[\t"&><\0-\x8\xB-\x1F]/
144144

145-
# FIXME: cache attack
146145
TOKEN_KIND_TO_INFO = Hash.new do |h, kind|
147146
h[kind] = kind.to_s.gsub(/_/, ' ').gsub(/\b\w/) { $&.capitalize }
148147
end

0 commit comments

Comments
 (0)